svn-1.4 安裝和使用

一、軟件

    1、svn-1.4.0-setup.exe

    2、TortoiseSVN-1.4.3.8645-win32-svn-1.4.3.msi

    3、SVNService.exe

    4、LanguagePack-1.4.3.8645-win32-zh_CN.exe

 

 

二、安裝

    首先,安裝1、svn-1.4.0-setup.exe 和   2、TortoiseSVN-1.4.3.8645-win32-svn-1.4.3.msi,重啓電腦;

    其次,將 SVNService.exe 拷貝到 svnserve.exe 所在目錄下,如 C:/Program Files/Subversion/bin 中;

三、註冊Subversion服務
方法一

1. 如果SVN服務器安裝在D:/Subversion,版本庫在F:/svndata,爲了使SVN服務能夠隨Windows啓動而啓動,需要鍵入以下命令

1
sc create svnservice binPath= "/"D:/Program Files/Subversion/bin/svnserve.exe/" --service -r F:/svndata" displayname= "SVNService" depend= Tcpip start= auto

其次,sc對選項的格式還有要求,例如“depend= Tcpip”不能寫爲“depend = Tcpip”或“depend=Tcpip”,也就是“=”前不能有空各,而後面必須有空格。

2. 在命令行窗口執行完以上這個命令之後,可以在服務器管理器 -> 配置 -> 高級安全Windows防火牆 -> 服務 下查看svnservice是否已啓動。

若服務還沒有啓動,可以在命令行窗口運行

net start svnservice 啓動這個服務

net stop svnservice 停止這個服務

3. 刪除服務

sc delete svnservice

方法二

命令行窗口輸入命令

svnserve –d –r D:/VersionLib/MyProject

這樣就以守護的方式啓動了Subversion服務器了,注意不要關閉命令行窗口,關閉窗口也會把Subversion服務停止掉

 

四、啓動Subversion
在TortoiseSVN客戶端輸入url地址svn://IP地址/版本庫名,本文中爲svn://localhost/svnobject

五、防火牆開飯端口

六、項目庫 conf 簡單配置

   1、passwd

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
chenyong = asset
admin = asset

2、svnserve.conf

### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = read   *****************************************注意
auth-access = write   *****************************************注意
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd   *****************************************注意
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the conf
### directory.  If you don't specify an authz-db, no path-based access
### control is done.
### Uncomment the line below to use the default authorization file.
# authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository

更多內容可以借鑑:http://blog.im82.com/?p=362

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章