본문 바로가기
Dev/ETC

CentOS SVN 설정.

by nakanara 2017. 11. 23.
반응형


1. 설치

> yum list subversion -- 확인

> yum install subversion -- 인스톨

  y 누름.


2. 저장소 생성

> cd /home/svn/repository 

> svnadmin create --fs-type fsfs /home/svn/repository/proj -- 생성할 저장소 명


3. svn 정보 수정

vi /etc/sysconfig/svnserve 


# OPTIONS is used to pass command-line arguments to svnserve.

#

# Specify the repository location in -r parameter:

# OPTIONS="-r /var/svn"

OPTIONS="--threads --root /home/svn/repository/" 



4. repository 정보 수정


svnserve.conf 복사해두고 새로만들던지.


 생성한 repository 의 svn 저장소

>cd /home/svn/repository/proj/conf

>vi svnserve.conf


[general]

anon-access = none -- 미 로그인자 접근 금지

auth-access = write -- 로그인자 

password-db = passwd -- 사용자 관리

authz-db = authz -- 접근 관리



5. 사용자 설정 (띄워쓰기!!)

>vi conf/passwd 


[users]

harry = harryssecret

sally = sallyssecret

 


6. 권한 설정

>vi conf/authz 


[groups]

harry_and_sally = harry,sally


[/]

@harry_and_sally = rw -- 읽기&쓰기 , 그룹은 @ 필요

guest = r -- 읽기



7. 서비스 시작, 종료, 상태

> service svnserve start -- 시작

> service svnserve status -- 상태

> service svnserve stop -- 종료


8. 서비스 자동 실행 등록


> chkconfig --list svnserve

> chkconfig svnserve on 



Note: Forwarding request to 'systemctl enable svnserve.service'.


> systemctl list-unit-files | grep svnserve.service  -- 상태 확인

svnserve.service                              disabled


> systemctl list-unit-files | grep svnserve.service  -- 상태 확인 

> systemctl enable svnserve.service

Created symlink from ...


> systemctl list-unit-files | grep svnserve.service  -- 상태 확인 





참고 사이트


http://linux.systemv.pe.kr/centos-7-systemd-이해하기/

https://zetawiki.com/wiki/CentOS_서브버전_서버_설치_및_설정_(svn)



반응형