windows 架設SVN伺服器

來源:互聯網
上載者:User

標籤:conf   default   伺服器   read   work   href   write   use   html   

想完整走一遍svn布置及使用流程,試完整理了一下:

 

step 1:下載安裝

1、安裝SVN伺服器,到http://subversion.apache.org/packages.html 上下載windows版的SVN,並安裝。

 Ctrl+R,輸入cmd進終端,在命令列下運行svn命令,如下,則安裝成功:

 

 

 

step 2:建立倉庫

 建立一個倉庫空檔案夾E:\repos,並在repos檔案夾上右鍵選中TortoiseSVN-->create repository here

 

 

 

step 3:關聯存放目錄與倉庫

 建立一個存放項目的檔案夾E:\working,並在working檔案夾內右鍵選中SVN Checkout,並在url of repository中輸入file:///E:/repos,在E:\working中將會產生.svn的檔案夾,表名已將working檔案夾與repos倉庫關聯起來了

 

 

 

step 4:將源碼放入倉庫

在working中放入原始碼sources,在sources右鍵TortoiseSVN-->Add,將sources加入到working檔案夾(被SVN管理的working檔案夾),然後TortoiseSVN--Commit提交到repository中

 

 

 

step 5:啟動svn服務

最後需要啟動SVN服務,在dos中輸入D:\Program Files\Subversion\bin>svnserve -d -r E:\repos

 

 

 

step 6:配置相關資訊

在E:\repos\conf的檔案中配置存取權限、使用者名稱、密碼

 

   conf將

  1. # anon-access = read   
  2. # auth-access = write   
  1. # password-db = passwd  

  中的注釋去掉修改為

 

  1. anon-access = read   
  2. auth-access = write   
  1. password-db = passwd  

 

  1. [users]  
  2. # harry = harryssecret  
  3. # sally = sallyssecret  
  4. admin=admin 

 

 

 

step 7:訪問

 提供同事訪問的地址:svn://IP地址/sources

 

 

參考:

http://www.cnblogs.com/ivan0626/p/3783053.html

http://www.cnblogs.com/jinmingjie/archive/2012/06/05/2536995.html

windows 架設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.