标签:test passwd anon 认证 min vim create amp access
yum -y install subversion
mkdir -p /work/svn && cd /work/svn
//创建版本库
svnadmin create test
--------------------------------------------
//增加用户名、密码
vim test/conf/passwd
[users]
manhelp=123456
--------------------------------------------
//增加用户分组和认证
vim test/conf/authz
[groups]
admin = manhelp
[/]
@admin = rw
* =
--------------------------------------------
//开放配置(把下面的几条放出来就行)
vim test/conf/svnserve.conf
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
--------------------------------------------
//查找SVN服务,并关掉(修改了svnserve.conf文件,要重启SVN)
ps -ef | grep svn
kill -9 xx
//带端口启动SVN
svnserve -d -r /work/svn --listen-port 8999
//用SVN方式检出版本库
svn co svn://localhost:8999/test
标签:test passwd anon 认证 min vim create amp access
原文地址:https://www.cnblogs.com/manhelp/p/11576609.html