yum install subversion
svnserve --version
mkdir -p /opt/svn
mkdir -p /opt/svn/shop/
svnadmin create /opt/svn/shop/
vi /opt/svn/shop/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = shop
vi /opt/svn/shop/conf/passwd
[users]
admin = admin
guowang = guowang
test = test
vi /opt/svn/shop/conf/authz
[groups]
admin = admin
test = guowang,test
[shop:/]
@admin = rw
[shop:/test]
@admin = rw
@test = rw
svnserve -dr /opt/svn
ps aux | grep svn
kill -9 进程号 或者 killall svnserve
参考:
http://my.oschina.net/fhd/blog/383280
本文转自 guowang327 51CTO博客,原文链接:http://blog.51cto.com/guowang327/1708886,如需转载请自行联系原作者