1.yum -y install openssl-devel httpd httpd-devel subversion mod_dav_svn mod_auth_mysql
验证安装
# cd /etc/httpd/modules # ls | grep svn mod_authz_svn.so mod_dav_svn.so
2. cd /data/svn
3. svnadmin create remote
4. 编辑conf 下 authz
[groups]
admin = feng
java = zhang,su
[remote:/]
@admin = rw
[remote:/AxureRP]
@admin = rw
@java = rw
5. 编辑passwd 文件
[users]
zhang =123
su = 123
6. 编辑 svnserve.conf 配置文件
[general]
anon-access = none
auth-access = write
password-db = /data/svn/remote/conf/passwd
authz-db = /data/svn/remote/conf/authz
realm = rep
7. 启动svn
svnserve -d -r /data/svn/
8.admin使用svn
svn co svn://172.16.230.112/remote
cd remote
mkdir AxureRP
svn add AxureRP
svn commit -m "add AxureRP"
9. java组用户连接svn
svn co svn://172.16.230.112/remote/AxureRP
Linux环境搭建多项目SVN
1.安装SVN
#yum install subversion
2.创建版本库文件夹
#mkdir -p /var/svn/repos/pro1 (/var/svn/repos是根路径,pro1是项目1版本库存放路径)
3.创建版本库1