本文共 1657 字,大约阅读时间需要 5 分钟。
目录
[root@development ~]# yum -y install subversion
[root@development ~]# vim /etc/xinetd.d/subversionservice subversion{ disable = no port = 3690 socket_type = stream protocol = tcp wait = no user = svnroot server = /usr/bin/svnserve server_args = -i -r /home/svnroot}
firewall
iptables -A INPUT -p tcp -m tcp --sport 3690 -j ACCEPTiptables -A OUTPUT -p tcp -m tcp --dport 3690 -j ACCEPT
install webdav module
[root@development ~]# yum install mod_dav_svn
create directory
mkdir /var/www/repositorysvnadmin create /var/www/repository
subversion.conf
[root@development ~]# vim /etc/httpd/conf.d/subversion.confLoadModule dav_module modules/mod_dav.soLoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so
vhost.conf
DAV svnSVNPath /var/www/repositoryAuthType BasicAuthName "Subversion Repository"AuthUserFile /etc/subversion/svn-auth-fileRequire valid-user
auth file
[root@development ~]# htpasswd -c /etc/subversion/svn-auth-file my_user_name
–trunk #存放主线
–branches #存放分支,可修改
–tags #存放标记,不可修改
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by Disqus 原文出处:Netkiller 系列 手札 本文作者:陈景峯 转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。