centos svn伺服器搭建

來源:互聯網
上載者:User

標籤:

centos svn伺服器搭建1、yum  install  subversion2、mkdir -p /opt/svn3、chmod R 777 /opt/svn4、svnadmin create /opt/svn/repos #建立一個svn版本倉庫repos5、cd /opt/svn/repos/conf6、cp -p svnserve.conf ./svnserve.conf.bak 備份一下即將修改的檔案7、vi svnserver.conf8、anon-access = none #匿名使用者禁止訪問auth-access = write password-db = passwd #密碼檔案authz-db = authz #認證檔案realm = repos #倉庫9、vi authz[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joe# [/foo/bar]# harry = rw# &joe = r# * =# [repository:/baz/fuz]# @harry_and_sally = rw# * = rrepos = zhoutingze,yuanlei[/]@repos = rwzhoutingze = rwyuanlei = rw* = r10、vi passwd[users]# harry = harryssecret# sally = sallyssecretzhoutingze = 123456yuanlei = 1234567811、svnserve -d -r /opt/svn/repos #啟動svn版本庫12、svn checkout svn://120.25.238.00013、多庫管理,將多個庫放到/opt/svn目錄下 先停止killall svnserve cd /opt/svn cp -p repos/conf/authz ./authz cp -p repos/conf/passwd ./passwd cd repos/conf vi svnserve.conf password-db = /opt/svn/passwd #密碼檔案 authz-db = /opt/svn/authz #認證檔案 vi /opt/authz   [groups]    repos = zhoutingze,yuanlei   [repos:/]    @repos = rw    zhoutingze = rw    yuanlei = rw    * = r svnserve -d -r /opt/svn/ #注意這裡,沒有repos檔案夾了 svn checkout svn://120.25.238.000/repos svnadmin create ProjectPlan vi ProjectPlan/conf/svnserve.conf password-db = /opt/svn/passwd #密碼檔案 authz-db = /opt/svn/authz #認證檔案 realm = ProjectPlan #倉庫 vi /opt/authz [groups]  repos = zhoutingze,yuanlei  ProjectPlan = zhoutingze,yuanlei [repos:/]  @repos = rw  zhoutingze = rw  yuanlei = rw  * = r [ProjectPlan:/]  @ProjectPlan = rwkillall svnservesvnserve -d -r /opt/svn/

 

centos 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.