BlogJava 首页 新随笔 联系 聚合 管理
  400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
1) install svn server:  yum install subversion

2) install  dav mod :  yum install mod_dav_svn

3) create the svn dir
$ mkdir /home/svn
$ cd /home/svn
$ mkdir myproject
$ chown -R root:subversion myproject
$ chmod -R g+rws myproject

4) create the respository
$ svnadmin create /home/svn/myproject

5) config the WebDAV protocals for web access the svn server:
    a)edit the file of /etc/httpd/conf.d/subversion.conf", and add the following code:
<Location /svn>DAV svn
SVNPath /home/svn 
AuthType Basic AuthName "myproject subversion repository" AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
   b)restart apache :   /etc/init.d/apache2 restart
   c)create the pass file, and add the user:
      touch  /etc/subversion/passwd 
htpasswd -c /etc/subversion/passwd user_name
6) now you can use your client browser/tool to access your svn server : http://localhost/svn/myproject
posted on 2009-05-19 23:49 jinfeng_wang 阅读(369) 评论(0)  编辑  收藏 所属分类: ZZLinux