SVN服務器部署

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章