CentOS 6.5系統搭建SVN服務

來源:互聯網
上載者:User

標籤:create   linux   根目錄   密碼   

CentOS 6.5系統搭建SVN服務

  1. 查看系統核心及位元

[[email protected] ~]# cat /etc/redhat-release

CentOS release 6.5 (Final)

[[email protected] ~]# uname -a

Linux VM2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64GNU/Linux

  1. 安裝SVN

yum -y install subversion

  1. 查看SVN包是否安裝

rpm -aqsubversion

subversion-1.6.11-15.el6_7.x86_64

  1. 配置與啟動SVN服務

建立SVN版本庫根目錄(svndata)及密碼許可權目錄(svnpasswd)

mkdir -p /application/svndata

mkdir -p/application/svnpasswd

  1. 啟動svn服務進程

svnserve -d -r/application/svndata/

  1. 建立svn版本庫

svnadmin create/application/svndata/sadoc

  1. 修改svnserver.conf設定檔

備份設定檔

cp -f svnserve.confsvnserve.confbak

[[email protected] conf]# egrep "\-access|\-db=" svnserve.conf

# anon-access = read

# auth-access = write

# password-db = passwd

# authz-db = authz

 

修改

vi svnserve.conf

anon-access = none   #12行

auth-access = write     #13行

password-db =/application/svnpasswd/passwd   #20行

authz-db = /application/svnpasswd/authz    #27行

  1. 修改authz ,passwd設定檔

cp authz passwd  /application/svnpasswd/

進入/application/svnpasswd

chmod 700 *

 

  1. 設定賬戶密碼

Vi  passwd

在[users]塊中添加使用者和密碼,格式:帳號=密碼,如dan=dan

  1. 10. 設定許可權

vi authz

在末尾添加如下代碼:

[sadoc:/]

dan=rw

w=r

意思是版本庫的根目錄dan對其有讀寫權限,w只有讀許可權。

  1. 11.重啟SVN服務

svnserve -d -r svnserve -d -r/application/svndate

  1. 12.安裝SVN用戶端

過程省略。。。。

  1. 13.在windows 測試

建立一個測試檔案夾,在該檔案夾下右鍵選擇 SVN checkout如(要事先安裝TortoiseSVN):

650) this.width=650;" width="221" height="342" src="/e/u261/themes/default/images/spacer.gif" alt="linux(centos)搭建SVN伺服器 - 小木 - 青番茄樂園" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" />

填寫SVN地址,如:

650) this.width=650;" width="467" height="360" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

輸入密碼,如:

650) this.width=650;" width="349" height="240" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

登陸成功:

650) this.width=650;" width="679" height="298" src="/e/u261/themes/default/images/spacer.gif" style="background:url("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd;" alt="spacer.gif" />

 

 

 

 

至此SVN服務搭建完成

本文出自 “技術營運” 部落格,請務必保留此出處http://xf214.blog.51cto.com/2014275/1694944

CentOS 6.5系統搭建SVN服務

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.