SVN服务器部署

<Alvin-zeng:孤独0-1>


1、安装包

#: yum -y install subversion mod_dav_svn mod_perl httpd

2、配置

#: mkdir -p /svn/repos

#:svnadmin create /svn/repos/test

#: htpasswd -c /svn/.htpasswd test1

#: htpasswd /svn/.htpasswd test2

#: vim /svn/auth (这个文件名自己任意)

[groups]   

# harryharry_and_sally = harry,sally     

[test:/]   

test1=r  

*=rw  

#:vim /etc/httpd/conf.d/subversion.conf

<Location /svn>

DAV svn

SVNParentPath /svn/repos

AuthzSVNAccessFile /svn/svnaccess

AuthType Basic

AuthName "SVN Repositorys"

AuthUserFile /svn/.htpasswd

Require valid-user

</Location>

#:chown apache.apache -R /svn

#:chmod 755 -R /svn

#:/etc/init.d/httpd restart

#:svnserve -d -r /svn