在svn中發布多個工程

來源:互聯網
上載者:User

標籤:style   blog   http   color   os   strong   檔案   io   

以前用svn只是在服務上發布一個工程,今天需求來了,要求部署兩個,以前沒有發布兩個,只有現琢磨了,不過最後還是成功了,看下文:

為了方便首先切換到svn的bin目錄下,我的是這個

 
  1. D:\Program Files\Subversion\bin> 

依次在cmd中執行下列命令

 
  1. mkdir d:\myproject1  
  2. svnadmin create d:\myproject1\project1  
  3. svnserve -d -r d:\myproject1 

在輸入完第二條命令時,修改下D:\myproject1\project1\conf下的三個檔案的內容(只顯示修改過的部分)

authz

 
  1. [groups]  
  2. # harryharry_and_sally = harry,sally  
  3. # harryharry_sally_and_joe = harry,sally,&joe  
  4. [/]  
  5. * = rw  
  6. ql = rw 

passwd

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

svnserve.conf

 
  1. [general]  
  2. ### These options control access to the repository for unauthenticated  
  3. ### and authenticated users.  Valid values are "write", "read",  
  4. ### and "none".  The sample settings below are the defaults.  
  5. anon-access = read 
  6. auth-access = write 
  7. ### The password-db option controls the location of the password  
  8. ### database file.  Unless you specify a path starting with a /,  
  9. ### the file‘s location is relative to the directory containing  
  10. ### this configuration file.  
  11. ### If SASL is enabled (see below), this file will NOT be used.  
  12. ### Uncomment the line below to use the default password file.  
  13. password-db = passwd 
  14. ### The authz-db option controls the location of the authorization  
  15. ### rules for path-based access control.  Unless you specify a path  
  16. ### starting with a /, the file‘s location is relative to the the  
  17. ### directory containing this file.  If you don‘t specify an  
  18. ### authz-db, no path-based access control is done.  
  19. ### Uncomment the line below to use the default authorization file.  
  20. authzauthz-db = authz  
  21. ### This option specifies the authentication realm of the repository.  
  22. ### If two repositories have the same authentication realm, they should  
  23. ### have the same password database, and vice versa.  The default realm  
  24. ### is repository‘s uuid.  
  25. # realm = My First Repository  

修改完三個檔案後,再執行

 
  1. svnserve -d -r d:\myproject1 

用同樣的方法,在myproject1中建立project2,完成後,開啟myeclipse,在svn中建立剛才的兩個工程svn url為

 
  1. svn://localhost/project1  
  2.  
  3. svn://localhost/project2  

提示輸入使用者名稱和密碼後,給每個工程添加一個項目,成功後

這樣以來,在一個svn中就成功的建立了兩個或者多個工程了。

本文出自 “喬磊的部落格 學習 進步” 部落格,請務必保留此出處http://sucre.blog.51cto.com/1084905/392617

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.