现在的位置: 首页 > 综合 > 正文

Install subversion on CentOS 4.7 Release

2012年10月27日 ⁄ 综合 ⁄ 共 1434字 ⁄ 字号 评论关闭

很乱,只是记录安装的过程,如果要安装svn建议参考

http://blog.csdn.net/Kryptonum/archive/2007/03/07/1523643.aspx

http://blog.csdn.net/Kryptonum/archive/2007/03/08/1524136.aspx

------------------------------------------------------------------------------------------------

#yum install httpd subversion mod_dav_svn

modify /etc/httpd/conf/httpd.conf
Listen 80
Listen 88

#apachectl start
httpd: bad user name apache

#groupadd apache
#useradd -g apache apache

#apachectl start
open browser,enter http://localhost:88

configure svn
#cd /home/
#mkdir svnroot
#cd svnroot
#mkdir repository
#svnadmin create repository/test    //create test repository
#mkdir -p import/{trunk,branches,tags}
#svn import /home/svnroot/import file:///home/svnroot/repository/test -m "Init repository"

#chown -R apache:apache svnroot
#chmod 700 svnroot
#chmod 700 svnroot/repository

//add to /etc/httpd/conf/httpd.conf
<Location /svn>
   DAV svn
   SVNParentPath /home/svnroot/repository/
   AuthType Basic
   AuthName "Subversion Repository"
   AuthUserFile /home/svnroot/repository/pwdfile
   AuthzSVNAccessFile /home/svnroot/repository/authz
   Satisfy Any
   Require valid-user
</Location>

#apachectl restart
http://localhost:88/svn/test/

Command:
//add user and modify password
#htpasswd -m /home/svnroot/repository/pwdfile username
New password: ******
Re-type new password: ******

//update Authorize file

//Delete a user
#htpasswd -D /home/svnroot/repository/pwdfile username

reference
http://blog.csdn.net/Kryptonum/archive/2007/03/07/1523643.aspx
http://blog.csdn.net/Kryptonum/archive/2007/03/08/1524136.aspx

抱歉!评论已关闭.