0. root로 접속 또는 sudo 사용
1. apt-get install subversion
2. subversion 디렉토리 만들기
=> mkdir /DataVolume
=> mkdir /DataVolume/shares
=> mkdir /DataVolume/shares/subversion
=> mkdir /DataVolume/shares/subversion/repository
3. subversion 저장소 만들기
=> mkdir /DataVolume/shares/subversion/repository/sample
=> svnadmin create /DataVolume/shares/subversion/repository/sample
4. subversion 환경설정
=> vi /DataVolume/shares/subversion/repository/sample/conf/svnserve.conf
anon-access = none
# 일기/쓰기 권한 설정
auth-access = write
# 암호 사용
password-db = passwd
5. subversion 암호설정
=> vi /DataVolume/shares/subversion/repository/sample/conf/passwd
6. subversion 실행
=> svnserve -d -r /DataVolume/shares/subversion/repository
7. subversion 폴더 만들기
=> svn mkdir svn://localhost/sample/trunk
=> svn mkdir svn://localhost/sample/branches
=> svn mkdir svn://localhost/sample/tag
8. subversion 폴더 확인하기
=> svn list svn://localhost/sample
9. subversion 자동 실행 등록.
= vi /etc/rc.local
svnserve -d -r /DataVolume/shares/subversion/repository
또는
=> vim /etc/xinetd.d/svn
service svn {
socket_type = stream
protocol = tcp
user = www-data
wait = no
disable = no
server = /usr/bin/svnserve
server_args = -i -r /DataVolume/shares/subversion/repository
port = 3690
}
10. 끝.
* killall svnserve <== svnserve 종료
8. subversion 폴더 확인하기
=> svn list svn://localhost/sample
9. subversion 자동 실행 등록.
= vi /etc/rc.local
svnserve -d -r /DataVolume/shares/subversion/repository
또는
=> vim /etc/xinetd.d/svn
service svn {
socket_type = stream
protocol = tcp
user = www-data
wait = no
disable = no
server = /usr/bin/svnserve
server_args = -i -r /DataVolume/shares/subversion/repository
port = 3690
}
10. 끝.
* killall svnserve <== svnserve 종료
댓글 없음:
댓글 쓰기