SVN建立資源庫和區域網連線配置
本機安裝的是TortoiseSVN-1.7.5.22551-win32-svn-1.7.3.msi
安裝好後會在滑鼠右鍵中出現如圖最後兩項的選項:
建立svn資源庫:
1.首先是建立一個資源庫資料夾,本例是sevenStar
如圖:
2.在建立的資料夾sevenStar上右鍵,選擇TortoiseSVN—>Create repository here選項
如圖:
此時會出現一個對話方塊,如圖:
@1 選擇第一個按鈕Create folder structure,會在sevenStar資料夾中建立svn所需要的預設的目錄結構建立成功會彈出如圖的對話方塊:建立成功之後確定即可@2 選擇第二個按鈕Start Repobrowser,會瀏覽到本資源庫的目錄結構,同時可以設定遠端訪問資源庫連結(URL):svn://192.168.1.12/sevenStar,以備在eclipse中下載上傳如圖:# harry = harryssecret
# sally = sallyssecret
dev=dev
wbd=wbd如上,添加了dev使用者,密碼為dev添加了wbd使用者,密碼為wbd@3 開啟svnserve.conf檔案修改:在本檔案中進行訪問許可權設定在[general]下把anon-access = read
auth-access = write
password-db = passwdauthz-db = authzrealm = My first repository幾項前的註釋(#)去掉即可[general]
### The anon-access and auth-access options control access to the
### repository for unauthenticated (a.k.a. anonymous) users and
### authenticated users, respectively.
### Valid values are "write", "read", and "none".
### Setting the value to "none" prohibits both reading and writing;
### "read" allows read-only access, and "write" allows complete
### read/write access to the repository.
### The sample settings below are the defaults and specify that anonymous
### users have read-only access to the repository, while authenticated
### users have read and write access to the repository.
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 directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### 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 the
### directory containing this file. 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
### The force-username-case option causes svnserve to case-normalize
### usernames before comparing them against the authorization rules in the
### authz-db file configured above. Valid values are "upper" (to upper-
### case the usernames), "lower" (to lowercase the usernames), and
### "none" (to compare usernames as-is without case conversion, which
### is the default behavior).
# force-username-case = none以上就是在svn伺服器端建立sevenStar資源庫的詳細步驟