SVN创建资源库和远程连接配置
SVN創(chuàng)建資源庫(kù)和遠(yuǎn)程連接配置
本機(jī)安裝的是TortoiseSVN-1.7.5.22551-win32-svn-1.7.3.msi
安裝好后會(huì)在鼠標(biāo)右鍵中出現(xiàn)如圖最后兩項(xiàng)的選項(xiàng):
創(chuàng)建svn資源庫(kù):
1.首先是創(chuàng)建一個(gè)資源庫(kù)文件夾,本例是sevenStar
如圖:
2.在創(chuàng)建的文件夾sevenStar上右鍵,選擇TortoiseSVN—>Create repository here選項(xiàng)
如圖:
此時(shí)會(huì)出現(xiàn)一個(gè)對(duì)話框,如圖:
@1 選擇第一個(gè)按鈕Create folder structure,會(huì)在sevenStar文件夾中創(chuàng)建svn所需要的默認(rèn)的目錄結(jié)構(gòu)
創(chuàng)建成功會(huì)彈出如圖的對(duì)話框:
創(chuàng)建成功之后確定即可
@2 選擇第二個(gè)按鈕Start Repobrowser,會(huì)瀏覽到本資源庫(kù)的目錄結(jié)構(gòu),同時(shí)可以設(shè)置遠(yuǎn)程訪問(wèn)資源庫(kù)鏈接(URL):svn://192.168.1.12/sevenStar,
以備在eclipse中下載上傳
如圖:
單擊OK按鈕即可設(shè)置好
3. 查看本資源庫(kù)的設(shè)置是否成功
在sevenStar文件夾上右鍵,選擇Check out...
如圖:
就會(huì)彈出一個(gè)Checkout對(duì)話框
如圖:
最上面的URL of repository:中的地址:svn://192.168.1.12/sevenStar就是我們剛才設(shè)置的
4.對(duì)本資源庫(kù)進(jìn)行配置
打開(kāi)sevenStar文件夾有如圖的目錄結(jié)構(gòu):
打開(kāi)配置文件夾conf,有authz,passwd,svnserve.conf三個(gè)文件
如圖:
@1 打開(kāi)authz文件修改:
在[groups]下添加sevenStar資源庫(kù)對(duì)用戶的訪問(wèn)權(quán)限
[groups]
[sevenStar:/]
* = rw
上面配置說(shuō)明sevenStar資源庫(kù)對(duì)所有用戶具有讀寫(xiě)訪問(wèn)權(quán)限
@2 打開(kāi)passwd文件修改:
在本文件中[users]下添加用戶和密碼,格式是:用戶 = 密碼
[users] # harry = harryssecret # sally = sallyssecret dev=dev wbd=wbd
如上,添加了dev用戶,密碼為dev
添加了wbd用戶,密碼為wbd
@3 打開(kāi)svnserve.conf文件修改:
在本文件中進(jìn)行訪問(wèn)權(quán)限設(shè)置
在[general]下把
anon-access = read auth-access = write password-db = passwd
authz-db = authz
realm = My first repository
幾項(xiàng)前的注釋(#)去掉即可
[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服務(wù)器端創(chuàng)建sevenStar資源庫(kù)的詳細(xì)步驟
http://www.cnblogs.com/qixing/archive/2013/01/23/2873211.html
總結(jié)
以上是生活随笔為你收集整理的SVN创建资源库和远程连接配置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 超详细的FreeRTOS移植全教程——基
- 下一篇: 被指涉嫌违法 奈雪的茶喝奶茶送股票活动下