1) sudo apt install subversion
2) 디렉토리 생성 : mkdir /home/svn
cd /home/svn
3) 저장소 지정 : svnadmin create --fs-type fsfs repos
4) svn 구동 : svnserve -d -r /home/svn
5) 인증 사용자 생성
root@agics-dev:/home/svn/repos/conf# vim svnserve.conf
[내용]
[general]
anon-access = none (인증 되지 않은 사용자 접근 거부)
auth-access = write (인증된 사용자 쓰기 권한)
password-db = passwd (사용자에 대한 계정정보)
authz-db = authz (사용자에 대한 저장소 권한주기. Optional)
6) 유저 생성 : vim passwd
[users]
# harry = harryssecret
# sally = sallyssecret
sylee = sylee
7) 권한 설정 : vim authz
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
usergroup = sylee
[/]
*=rw
[repository:/repos]
@usergroup = rw
8) 폴더 권한 주기
root@agics-dev:/home/svn/repos/conf# chmod -R 760 /home/svn/*
9) trunk , branches, tags 만들기
root@agics-dev:/home/svn/[저장소명]/conf# svn mkdir://[IP]/[저장소명]/trunk
root@agics-dev:/home/svn/[저장소명]/conf# svn mkdir svn://[IP]/[저장소명]/branches
root@agics-dev:/home/svn/[저장소명]/conf# svn mkdir svn://[IP]/[저장소명]/tags
'SVN' 카테고리의 다른 글
[SVN] Window SVN Server add Users (0) | 2023.12.29 |
---|---|
[SVN] 저장소 추가하기 (0) | 2022.11.11 |
[SVN] 서버 확인 및 재시작 (0) | 2022.11.11 |