Ubuntu安裝SVN伺服器的方法教程,ubuntusvn

來源:互聯網
上載者:User

Ubuntu安裝SVN伺服器的方法教程,ubuntusvn
一、安裝

1、查看是否安裝

svn --version

安裝了卸載

sudo apt-get remove --purge subversion

2、安裝

sudo apt-get updatesudo apt-get install subversion

3、查看版本

#svn版本svn --version#svn server版本svnserve --version  

4、建立倉庫

sudo mkdir -p /home/projectsudo svnadmin create /home/project
二、配置

修改conf目錄下的三個檔案,authz;passwd;svnserve.conf

1、svnserve.conf倉庫主設定檔

[general]#匿名使用者不可讀,選項值none,read和writeanon-access = none#許可權使用者可寫auth-access = write#密碼檔案為passwdpassword-db = passwd#許可權檔案為authzauthz-db = authz

2、passwd是密碼檔案,當前倉庫下的所有使用者都記錄在這裡

[users]# harry = harryssecret# sally = sallyssecretadmin = admin

3、authz是許可權檔案,用於為passwd中的使用者配置許可權

[groups]#在這裡建立許可權組並指定組內使用者,中間用,分割# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joeadmin = zhangcy,liuzz,adminuser = admin,maym,lizh,dongyan#為許可權組分配許可權[/project]@admin = rw@user = rw* =
三、啟動

1、啟動

svnserve -d -r /home/project

2、查看svnserve是否運行

ps aux | grep svnserve

3、停止伺服器

killall svnserveps aux | grep svnserve

聯繫我們

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