svn+apache安裝及詳細配置

svn+apache安裝及配置
一.準備工做
1.安裝環境
redhat 5.8 32位
2.所需安裝包sql


二.安裝配置svn+apache
1.安裝apache,svn
 apache

  
  
  
  
  1. yum -y install httpd  
  2. tar xf subversion-1.6.18.tar.gz  
  3. tar xf subversion-deps-1.6.18.tar.gz  
  4. cd subversion-1.6.8  
  5. ./configure -prefix=/usr/local/subversion  
  6. make && make install  

2.配置svn+apache
(1).安裝配置apache與svn的鏈接
 vim

  
  
  
  
  1. mkdir -p /opt/svndata  
  2. vim /etc/httpd/conf/httpd.conf  
  3.     Listen 192.168.133.12:8081  
  4.  ServerName 192.168.133.12:8081  
  5.  <Location /svn>  
  6.  DAV   svn  
  7.  SVNParentPath /opt/svndata  
  8.  AuthzSVNAccessFile /opt/svndata/repos/conf/authz  
  9.  AuthType Basic  
  10.  AuthName "Subversion repository" 
  11.  AuthUserFile /opt/svndata/repos/conf/passwd   
  12.  Require valid-user 
  13.  </Location>  
  14. yum -y install mod_dav_svn  

(2).配置svn
 瀏覽器

  
  
  
  
  1. mkdir -p /opt/svndata/repos   
  2. svnadmin create /opt/svndata/repos  
  3. htpasswd -c /opt/svndata/repos/conf/passwd qinqin  
  4. htpasswd -m /opt/svndata/repos/conf/passwd qinqin001  
  5. vim /opt/svn/conf/authz.conf  
  6.     [groups]  
  7.  admin=qinqin,qinqin001  
  8.  [/]  
  9.  @admin=rw  
  10.  [repos:/]  
  11.  qinqin=rw   
  12.  qinqin001=rw  
  13.  * = r  

(3).啓動svnide

  
  
  
  
  1. svnserve -d -r /opt/svndata  


(4).瀏覽器登陸
http://192.168.133.12:8081/svn/repos svn

相關文章
相關標籤/搜索