1.安装
yum install subversion httpd mod_dav_svn
2.创建仓库存储代码
mkdir /var/repos
svnadmin create /var/repos/svn1
3.启动svn服务器
svnserve -d -r /var/repos/
4.apache部分,查看是否支持svn模块--->
vim /etc/httpd/conf.d/subversion.conf
5.编辑文件 /etc/httpd/conf.d/subverson.conf,添加
<Location /svn>
DAV svn
SVNParentPath /var/repos
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /home/svn/passwd
AuthzSVNAccessFile /home/svn/auth
Require valid-user
</Location>
6.创建用户
mkdir /home/svn
htpasswd -c /home/svn/passwd gxc (输入两遍密码)
htpasswd /home/svn/passwd gxc2015
-----------------------------------------------------------
cat /home/svn/passwd ,shows
gxc2015:KRr0TI/BGlmBg
gxc:nnUz/l1.AWl7g
7.最后创建权限 vim /home/svn/auth
chmod 777 -R /var/repos/
最后重启apache服务器 service httpd restart
svn的访问地址是:http://192.168.1.63/svn/svn1