在Windows上安裝Subversion伺服器 記錄

來源:互聯網
上載者:User
在Windows上安裝Subversion伺服器 記錄

Date : 2007.12.30

OS : Window xp , Subversion 1.4.5

1 首先下載Subversion Windows版本的伺服器軟體,如下:

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

如svn-1.4.5-setup.exe,

然後執行安裝,安裝目錄如:D:Program FilesSubversion,然後這是一下系統的環境變數Path,將Subversion的bin路徑加入到系統的path中。

2 建立Subersion庫:首先建立一個目錄存放Subversion的庫,在庫中存放所有的Subversion項目,如E:Repository

3 建立一個新的Subversion項目。

只需執行: svnadmin create E:Repositorytest-project

下面需要設定項目的使用者資訊,只需開啟Subversion項目conf目錄下passwd檔案添加新的使用者即可,如

[users]
# username = password

test = 111111

接下來是設定項目的一些其他資訊,開啟conf目錄下的svnserve.conf檔案,然後進行如下設定即可:

[general]

anon-access = read

auth-access = write

password-db = passwd

realm = demo

4 啟動Subversion服務

安裝服務

sc create SubversionService binpath= ""D:Program FilesSubversionbinsvnserve.exe" --service --root E:Repository"

displayname= "Subversion Repository" depend= tcpip start= auto

刪除服務

sc delete SubversionService

5 向Subversion中匯入項目:現在我們需要將項目匯入到Subversion的庫中,只需執行一下命令:

svn import d:demo svn://localhost/demo -m "initial import" --username test --password 111111

這樣項目就匯入到subversion庫中啦。

6 將項目匯出:從Subversion項目中匯出項目也很簡單,只需執行以下操作:

svn co svn://localhost/demo --username test --password 111111

相關文章

聯繫我們

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