centOs5.10 下安裝svn伺服器,centos5.10svn

來源:互聯網
上載者:User

centOs5.10 下安裝svn伺服器,centos5.10svn

///////////////////////////===============CentOs5.10 下安裝svn伺服器================///////////////////////////////////

//一:安裝SVN

#yum list sub*

#yum install subversion

//二:查看是否安裝成功

#svnserve --version

//三:建立svn倉庫

#mkdir -p /opt/svn/

# mkdir -p /opt/svn/svntest/

//四:建立svn版本庫

#mkdir -p /opt/svn/svntest

//五:設定許可權

 說明:
            (1)svnserve.conf:  svn服務綜合設定檔。
            (2)passwd: 使用者名稱口令檔案。
            (3)authz: 許可權設定檔。

1、修改passwd檔案

  1. [users]  
  2. hu=123456  
  3. yao=123456  

註:hu為使用者名稱,123456為密碼

2、配置可使用純文字密碼

[plain] view plaincopy
  1. vi /$HOME/.subversion/servers  
  2.   
  3. #找到以下內容,注釋去掉並改成yes就行了  
  4. store-plaintext-passwords = yes  

3、修改authz檔案

[plain] view plaincopy
  1. [groups]  
  2. team=hu,yao
  3. [svntest:/]  
  4. @team=rw  
註:svntest為之前建立的svn版本庫名稱

4、修改svnserve.conf

[plain] view plaincopy
  1. [general]  
  2. anon-access = none  
  3. auth-access = write  
  4. password-db = passwd  
  5. authz-db = authz  

5、啟動svn

svnserve -d --listen-port 9090 -r /opt/svn


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.