변군이글루
[리눅스] CentOS7 SVN 설치 및 설정 본문
CentOS7 SVN 설치 및 설정
[svn 설치]
1. subversion 패키지 설치
# yum install subversion
2. 저장소(repository) 생성
# mkdir -p /svn/repos
3. svn 프로젝트 생성
# svnadmin create --fs-type fsfs /svn/repos
4. 설정파일위치: /svn/repos/conf/
# vi /svn/repos/conf/svnserve.conf
[general] anon-access = none //익명 접근의 권한은 none 없음 auth-access = write //인증 접근의 권한은 write 읽기/쓰기 realm = My_First_Repository //프로젝트 명칭
authz-db = authz //인증 접근의 권한 설정 파일 위치
password-db = passwd //사용자 패스워드 저장 파일 위치 |
svnserve.conf : svn project1에 대한 일반적인 권한 설정
passwd : svn 사용자 ID/PW를 설정
authz : svn 접근에 대한 그룹 설정, 읽기/쓰기 권한 설정
5. svn 서버
# vi /etc/sysconfig/svnserve
# OPTIONS is used to pass command-line arguments to svnserve. # # Specify the repository location in -r parameter: OPTIONS="--threads --root /svn/repos |
옵션설명
--root SVN의 루트 경로 (프로젝트 상위 경로로 설정)
--threads 데몬 모드로, fork 대신 thread를 사용
--listen-port 기본 3690포트를 다른 포트로 변경할 경우 사용
6. svnserve 서비스 시작(재시작)
# systemctl restart svnserve.service
[svn 설정- sasl 인증 이용 (접속암호의 암호화)]
<Type 1>
1. cyrus-sasl 패키지 설치
# yum install cyrus-sasl*
2. SVN 프로젝트 svnserve.conf 설정
# vi /svn/repos/conf/svnserve.conf
[general] anon-access = none auth-access = write
authz-db = authz
realm = My_First_Repository
[sasl] use-sasl = true
min-encryption = 128 max-encryption = 256 |
3. 계정 생성 (root 권한으로)
옵션 설명
-c create 계정 생성
-d delete 계정 삭제
-f DB파일의 위치를 지정할 경우 사용
-u 도메인 (여기서는 realm의 이름)
# saslpasswd2 -c -u "My_First_Repository" anti1346
4. 계정 목록 확인
# sasldblistusers2
5. 계정 삭제
# saslpasswd2 -d -u "My_First_Repository" anti1346
Type 2
1. sasl svn파일 생성
# vi /etc/sasl2/svn.conf
pwcheck_method: saslauthd mech_list: plain login |
2. svn이 시스템 PAM 인증 사용 설정
# ln -s /etc/pam.d/system-auth /etc/pam.d/svn
3. saslauthd 서비스 등록
# systemctl enable saslauthd.service
4. saslauthd 서비스 시작(재시작)
# systemctl start saslauthd.service
[svn 백업/복구]
1. 백업
svnadmin dump /svn/repos > /backup/repos1.dump
복구
svnadmin load /svn/repos < /backup/repos1.dump
[원본URL]
https://www.rndit.net/confluence/display/DEV/CentOS+SVN+SASL
https://www.rndit.net/confluence/display/DEV/CentOS+SVN+install+backup+restore+configuration
'서___리눅스' 카테고리의 다른 글
[리눅스] CentOS 7 RabbitMQ 설치 방법 (0) | 2017.08.16 |
---|---|
[리눅스] 리눅스 password hashing 알고리즘 변경하기 (0) | 2017.08.14 |
[리눅스] CentOS7 SVN 설치 및 설정 (0) | 2017.08.08 |
[리눅스] lsattr, chattr 명령어 - 파일속성설정 (0) | 2017.08.04 |
[리눅스] KVM Virsh Console Access On CentOS 7 (0) | 2017.08.03 |
[리눅스] 리눅스 공인IP 확인 (0) | 2017.07.19 |