>> svn:// 형태의 서브버전 단독 서버 형태
1. 저장소 폴더 생성
/my/repo
2. 저장소 생성
svnadmin create --fs-type fsfs /my/repo/test1
svnadmin create --fs-type fsfs /my/repo/test2
3. 설정
각 저장소 하위의 conf/ 폴더에 설정 파일들이 위치하게 된다.
/conf/svnserve.conf
[general] 항목 중 아래 내용을 활성화(주석# 제거)
각각 익명사용자 처리여부, 패스워드 설정파일, 인증 설정 파일명이 된다.
anon-access = none
password-db = passwd
authz-db = authz
3. 유저등록
/conf/passwd
아이디 = 비밀번호 형태로 등록
ex) testid = 1234
4. 유저 접근 권한 등록
/conf/authz
[/폴더명]
유저 = 권한
ex) [/project/helloworld]
testid = r
5. 서버 실행
svnserve -d -r 저장소명
6. 포트 변경
svnserve -d -r 저장소명 --listen-port 포트
7. 서비스 등록
sc create 서비스이름 binpath= "실행할명령" start= auto
특이사항: = 뒤에 스페이스 1칸 필요 -_-;;
ex)
sc create SVN binpath= "d:\svn\bin\svnserve.exe --service -r 저장소경로 --listen-port 9090" start= auto DisplayName= "my svn"
8. 서비스 삭제
sc delete 서비스이름