目錄
[root@development ~]# yum -y install subversion
[root@development ~]# vim /etc/xinetd.d/subversion service 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 ACCEPT iptables -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/repository svnadmin create /var/www/repository
subversion.conf
[root@development ~]# vim /etc/httpd/conf.d/subversion.conf LoadModule dav_module modules/mod_dav.so LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so
vhost.conf
<Location /> DAV svn SVNPath /var/www/repository AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/subversion/svn-auth-file Require valid-user </Location>
auth file
[root@development ~]# htpasswd -c /etc/subversion/svn-auth-file my_user_name