Linux(CentOS-6.5)安裝配置SVN

來源:互聯網
上載者:User

標籤:http   io   ar   os   使用   for   sp   strong   檔案   

安裝說明
系統內容:CentOS-6.5
安裝方式:yum install (源碼安裝容易產生版本相容的問題)
安裝軟體:系統自動下載bingSVN軟體 第一步:安裝SVN檢查已安裝版本
#檢查是否安裝了低版本的SVN
[[email protected] /]# rpm -qa subversion

#卸載舊版本SVN
[[email protected] modules]# yum remove subversion 安裝SVN
[[email protected] modules]# yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql 確認已安裝了svn模組
[[email protected] /]# cd /etc/httpd/modules
[[email protected] modules]# ls | grep svn
mod_authz_svn.so
mod_dav_svn.so

驗證安裝
檢驗已經安裝的SVN版本資訊 
[[email protected] modules]# svnserve --version第二步:建立SVN版本庫目錄程式碼程式庫建立
SVN軟體安裝完成後還需要建立SVN庫 
[[email protected] modules]# mkdir -p /opt/svn/repo
[[email protected] modules]# svnadmin create /opt/svn/repo
執行上面的命令後,自動建立repo庫,查看/opt/svn/repo 檔案夾發現包含了conf, db,format,hooks, locks, README.txt等檔案,說明一個SVN庫已經建立。
 第三步:配置版本庫配置版本庫
進入上面產生的檔案夾conf下,進行配置 
[[email protected] modules]# cd /opt/svn/repo/conf   第四步:使用者密碼passwd配置[[email protected] password]# cd /opt/svn/repo/conf
[[email protected] conf]# vi passwd修改passwd為以下內容:[users]
# harry = harryssecret
# sally = sallyssecret
svntest=123456  第五步:許可權控制authz配置[[email protected] conf]# vi + authz [groups]
[/]
svntest=rw意思是svntest使用者具有對版本庫的根目錄有讀寫權限。 第六步:修改svnserve.conf檔案anon-access = read #匿名使用者可讀
auth-access = write #授權使用者可寫
password-db = passwd #使用哪個檔案作為帳號檔案
authz-db = authz #使用哪個檔案作為許可權檔案
realm = /var/svn/svnrepos # 認證空間名,版本庫所在目錄 第七步:啟動svn版本庫svnserve -d -r /var/svn/repo  查看SVN進程
[[email protected] conf]# ps -ef|grep svn|grep -v grep
root 12538 1 0 14:40 ? 00:00:00 svnserve -d -r /opt/svn/repositories

檢測SVN 連接埠
[[email protected] conf]# netstat -ln |grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN

停止重啟SVN
[[email protected] password]# killall svnserve //停止 
[[email protected] password]# svnserve -d -r /opt/svn/repositories // 啟動

測試
SVN服務已經啟動,使用用戶端測試連接。 
用戶端串連地址:svn://192.168.15.231
使用者名稱/密碼: zhoulf/123456
測試建立檔案夾等操作。 

Linux(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.