cd /usr/project/svn/
mkdir Integral_Web
svnadmin create /usr/project/svn/Integral_Web
(1)进入到新的项目的conf目录下:
cd /usr/project/svn/Integral_Web/conf
(2)修改passwd文件:(添加用户名)vi passwd
[users]
# harry = harryssecret
# sally = sallyssecret
gaojun = gaojun
dxy = dxy
(3)修改svnserve.conf 文件;(修改配置文件)
vi svnserve.conf 修改内容:
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = /usr/project/svn/Integral_Web
(4) 修改认证文件
vi authz 配置如下
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin = gaojun,dxy
[/]
@admin = rw
* = r
以上内容完成后,svn项目库就搭建完毕了,如果添加人员只需要在pass中跟auth中name = passwd就行了 结束后需要重新启动svn服务
(5)结束svn服务:
killall svnserve
或者
ps -ef|grep svnserve
kill PID
(6)启动svn项目,这里我们就启动所有的svn目录层就行了
svnserve -d -r /usr/project/svn