1、匿名读写
改 svnserve.conf:
anon-access = none #注意行首不要空格,其他也不要空格
2、用户读写(用户:yp,密码:123)
1)改svnserve.conf:
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
2)改passwd
[users]
# harry = harryssecret
# sally = sallyssecret
yp = 123
3)改authz
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin = yp
@admin = rw
* =
# [/foo/bar]
# harry = rw
# &joe = r
# * =
[repository:/]
@admin = rw
* =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
3、安装命令
安装svn:sudo apt-get install subversion
建仓库:svnadmin create /home/svn/src
启动服务:svnserve -d -r '/home/svn'
显示监听端口:netstat -an | grep 3690
访问:svn://47.100.171.251/src
杀进程:killall svnserve