1.安装SVN
yum install subversion –y
2.配置SVN
建立SVN版本库数据存储目录(svndata)及用户、密码权限目录(svnpasswd)
mkdir -p /application/svndata mkdir -p /application/svnpasswd
建立项目版本库:
svnadmin create /application/svndata/sadoc
调整SVN配置文件及权限文件:
cd /application/svndata/sadoc/conf egrep "-access|-db =" svnserve.conf anon-access = none auth-access = write password-db = /application/svnpasswd/passwd authz-db = /application/svnpasswd/authz
3.配置密码认证文件
cd /application/svndata/sadoc/conf cp authz passwd /application/svnpasswd/ chmod -R 700 /application/svnpasswd/ [root@H5 conf]# cat passwd [users] weiuu01 = 123.com weiuu02 = 123.com [root@H5 conf]# cat authz [groups] weiuu = weiuu01,weiuu02 [sadoc:/] @weiuu = rw
4.启动SVN服务指定服务的SVN根目录
svnserve -d -r /application/svndata/