step1:在linux环境下进行安装:yum -y install svnserve
step2:创建仓库的根目录:mkdir -p /application/svndata(数据目录),mkdir -p /application/svnauth(权限配置文件)
step3:创建版本仓库:svnadmin create /application/svndata/test
step4:修改仓库配置文件
cd /application/svndata/test/conf
vim svnserve.conf做出如下配置(顶格写)
anon-access = no
auth-access = write
authz-db = /application/svnauth/authz
password-db = /application/svnauth/passwd
step5:将 /svnserve/test/conf下的authz和passwd复制到/application/svnauth下
cp passwd authz /application/svnauth
cd /application/svnauth
chmod 700 *
step6修改权限配置文件
修改passwd文件按照如下配置两个账号用于测试
liziwu = liziwu.test
liziwu1 = liziwu1.test
修改authz 文件按照如下配置(r只读,rw读写)
[test:/]
liziwu = rw
liziwu1 = r
step7:
启动svn svnserve -d -r /application/svndata
检查启动是否正常lsof -i:3690
step8:
在客户端下载TortoiseSVN ,检出代码:svn:\\ip\test