linux建立SVN用戶端,伺服器

來源:互聯網
上載者:User

標籤:style   class   blog   code   http   color   

1- linux基本都內建svn

2-建立svn伺服器

新建立伺服器代碼倉庫

# svnadmin create serversvn

這樣,我們就在~/目錄下建立了版本庫serverSvn。

 

3-修改設定檔

svnserve.conf

[general]anon-access = readauth-access = writepassword-db = passwdauthz-db = authz

 

 passwd

[users]# harry = harryssecret# sally = sallyssecretusername  = password //修改為想要的使用者名稱

 

authz

[groups]user = username[serversvn:/]    //serversvn一定是 svn://localhost/後面的路徑@user = wr

 

 

4- 啟動svn伺服器

cd serversvn/conf

#svnserve -d -r /home/

-d 後台方式啟動

-r 指定版本庫目錄

 

5-建立svn用戶端

現在目錄為 /home/serversvn

如果啟動時-r目錄為/home/,那麼svn路徑localhost後直接寫-r 指定目錄的下一目錄為 serversvn,目的使svn://路徑為絕對路徑

 svn://localhost/serversvn clientsvn

如果啟動時,沒有指定-r選項(svnserve -d),則要輸入版本庫的絕對路徑

 svn://localhost/home/serversvn clientsvn

#svn checkout svn://localhost/serversvn clientsvn

建立好用戶端為 cliensvn

這樣版本庫的所有內容都被check出來,存放在目前的目錄clientsvn下,這裡使用的svn協議,不用搭建http伺服器

 

err:

[email protected]:~/clientsvn$ svn commit -m "initial version openssl_0.1.0" openssl/

svn: Commit failed (details follow):

svn: Authorization failed

查看[3-修改設定檔]步驟

 

 

 

聯繫我們

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