一. 安装必须的软件包
yum install subversion
httpd mod_dav_svn
wget gcc-c++ make unzip
二. SVN服务器配置
1. 新建一个目录存储svn所有文件
#mkdir /home/svn
2. #svnadmin create /home/svn/project
3. #mkdir project project/server project/client project/test
4. 添加用户
编辑/home/svn/project/conf/passwd文件
[users]
svnuser= svnuser123
5. 修改用户访问策略
编辑:/home/svn/project/conf/authz
[groups]
project_p = svnuser
[project:/]
@project_p = rw
*=
6. 修改svnserve.conf文件,让用户和策略配置升效
svnserve.conf
[general]
anon-access = none
auth-zccess = write
password-db = /home/svn/project/conf/passwd
authz-db = /home/svn/project/conf/authz
7. 启动服务器
#svnserve -d -r /home/svn
yum install subversion
httpd mod_dav_svn
wget gcc-c++ make unzip
二. SVN服务器配置
1. 新建一个目录存储svn所有文件
#mkdir /home/svn
2. #svnadmin create /home/svn/project
3. #mkdir project project/server project/client project/test
4. 添加用户
编辑/home/svn/project/conf/passwd文件
[users]
svnuser= svnuser123
5. 修改用户访问策略
编辑:/home/svn/project/conf/authz
[groups]
project_p = svnuser
[project:/]
@project_p = rw
*=
6. 修改svnserve.conf文件,让用户和策略配置升效
svnserve.conf
[general]
anon-access = none
auth-zccess = write
password-db = /home/svn/project/conf/passwd
authz-db = /home/svn/project/conf/authz
7. 启动服务器
#svnserve -d -r /home/svn
或改通过修改 /etc/init.d/svnserve 命令来启动
1、修改/etc/init.d/svnserve文件内容:vim /etc/init.d/svnserve
2、替换其中命令:args="-d --pid-file=${pidfile} -r /svn"
3、重启/etc/init.d/svnserve restart
mac 清楚svn的用户名密码
cd $HOME/.subversion
rm -rf auth