偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Apache+Svn設(shè)置問(wèn)題詳解

開(kāi)發(fā) 項(xiàng)目管理
本文和大家學(xué)習(xí)一下Apache+SVN設(shè)置問(wèn)題,主要包括建立SVNServer服務(wù)器和建立權(quán)限兩部分內(nèi)容,在這里和大家分享一下。

本節(jié)介紹一下SVN設(shè)置問(wèn)題,開(kāi)始是在win2003enterpriseserver下用Apache+Svn設(shè)置,希望通過(guò)本節(jié)的學(xué)習(xí)大家能夠掌握Apache+SVN設(shè)置的方法,歡迎大家一起來(lái)學(xué)習(xí)。下面是具體介紹。
1.建立SVNServe服務(wù)器
1)啟動(dòng)服務(wù)器程序svnserve
A:-r直接指定到版本庫(kù)(稱之為單庫(kù)svnserve方式)
比如,有一個(gè)庫(kù)project1,位于D:\svn\project1
svnserve-d-rD:\svn\project1
此種方式建立的版本庫(kù),訪問(wèn)方式為:
Svn://127.0.0.1/
B:-r指定到版本庫(kù)的上級(jí)目錄(稱之多庫(kù)svnserve方式)
同樣,有一個(gè)庫(kù)project1,位于D:\svn\project1
如果使用以下命令啟動(dòng)svnserve
svnserve-d-rD:\svn
此種方式建立的版本庫(kù),訪問(wèn)方式為:
Svn://127.0.0.1/project1/。我們?cè)賮?lái)看一下Apache+SVN設(shè)置過(guò)程中如何建立權(quán)限。

2.建立權(quán)限
1)svnserve.conf文件結(jié)構(gòu)分析
每個(gè)建立的版本庫(kù)下,都存在/conf/svnserve.conf文件,此文件就是用于配置此版本庫(kù)的訪問(wèn)權(quán)限。
在版本庫(kù)權(quán)限配置文件svnserve.conf中,以#開(kāi)頭的行為注釋。建立版本庫(kù)后,默認(rèn)文件內(nèi)容為:
 

  1. ###Thisfilecontrolstheconfigurationofthesvnservedaemon,ifyou  
  2. ###useittoallowaccesstothisrepository.(Ifyouonlyallow###accessthroughhttp:and/orfile:URLs,thenthisfileis###irrelevant.)  
  3. ###Visithttp://subversion.tigris.org/formoreinformation.  
  4. [general]  
  5. ###Theseoptionscontrolaccesstotherepositoryforunauthenticated  
  6. ###andauthenticatedusers.Validvaluesare"write","read",  
  7. ###and"none".Thesamplesettingsbelowarethedefaults.  
  8. #anon-access=read 
  9. #auth-access=write 
  10. ###Thepassword-dboptioncontrolsthelocationofthepassword  
  11. ###databasefile.Unlessyouspecifyapathstartingwitha/,  
  12. ###thefile'slocationisrelativetotheconfdirectory.  
  13. ###Uncommentthelinebelowtousethedefaultpasswordfile.  
  14. #password-db=passwd 
  15. ###Theauthz-dboptioncontrolsthelocationoftheauthorization  
  16. ###rulesforpath-basedaccesscontrol.Unlessyouspecifyapath  
  17. ###startingwitha/,thefile'slocationisrelativetotheconf  
  18. ###directory.Ifyoudon'tspecifyanauthz-db,nopath-basedaccess  
  19. ###controlisdone.  
  20. ###Uncommentthelinebelowtousethedefaultauthorizationfile.  
  21. #authzauthz-db=authz  
  22. ###Thisoptionspecifiestheauthenticationrealmoftherepository.  
  23. ###Iftworepositorieshavethesameauthenticationrealm,theyshould  
  24. ###havethesamepassworddatabase,andviceversa.Thedefaultrealm  
  25. ###isrepository'suuid.  
  26. #realm=MyFirstRepository 

此文件,大部分都以#開(kāi)頭,為注釋部分。文件真實(shí)內(nèi)容只有一句:
[general]
Apache+SVN設(shè)置在以下講解時(shí),只顯示出配置內(nèi)容,不顯示注釋。
首先來(lái)解釋以下兩句的意義:
anon-access=read
auth-access=write
anon-access表示沒(méi)有進(jìn)行驗(yàn)證的用戶的功能,有三個(gè)可選項(xiàng):none,read,write。
none表示沒(méi)有什么權(quán)限,此時(shí)客戶端連接服務(wù)器時(shí),客戶端就提示進(jìn)行驗(yàn)證用戶;
read表示有讀取本版本庫(kù)的內(nèi)容的權(quán)限,但不能進(jìn)行commit操作;
write表示可以進(jìn)行版本庫(kù)的讀寫(xiě)的權(quán)限;
auth-access表示經(jīng)過(guò)了驗(yàn)證的用戶的權(quán)限;
password-db=passwd
這個(gè)語(yǔ)句告訴svnserve.exe,用戶名與密碼放在passwd.文件中,對(duì)于passwd文件的結(jié)構(gòu)后面再做說(shuō)明authz-db=authz
告訴svnserve.exe,項(xiàng)目目錄訪問(wèn)權(quán)限的相關(guān)配置是放在authz.文件中,此文件的設(shè)置是細(xì)分權(quán)限,具體結(jié)構(gòu)下面將做說(shuō)明;
所以,對(duì)于正常使用的版本管理,一般是要進(jìn)行驗(yàn)證的,典型的/conf/svnserve.conf一般為:
[general]
anon-access=none
auth-access=write
password-db=passwd
authz-db=authz
注意:每個(gè)配置行,都要頂頭寫(xiě),沒(méi)有空格。請(qǐng)期待下節(jié)有關(guān)Apache+SVN設(shè)置講解。

 【編輯推薦】

  1. SVN配置文檔新手指南
  2. 實(shí)用SVN配置教程淺析
  3. 詳解使用SVN配置自動(dòng)更新WEB服務(wù)器
  4. Centos下SVN的安裝配置實(shí)用手冊(cè)
  5. SVN服務(wù)器安裝指導(dǎo)手冊(cè)
責(zé)任編輯:佚名
相關(guān)推薦

2010-05-19 15:45:23

Apache+SVN權(quán)

2010-05-27 16:18:58

SVN設(shè)置

2010-05-19 15:25:47

Apache+SVN權(quán)

2011-07-29 08:51:51

Apache

2010-05-19 15:15:24

Apache+SVN部

2010-05-19 15:00:18

Apache+SVN部

2010-05-27 09:41:05

SVN沖突

2010-05-27 15:53:35

SVN屬性設(shè)置

2010-06-02 15:51:01

SVN版本控制

2010-05-24 09:11:06

SVN版本庫(kù)

2010-05-24 11:16:43

SVN更新URL

2010-05-25 19:57:32

2010-06-01 15:11:08

SVN刪除文件

2010-05-25 17:35:12

SVN代理

2010-05-28 17:15:17

SVN分支與合并

2010-05-25 18:32:22

apache+svn+

2010-05-26 14:28:53

本地SVN

2010-05-31 13:23:43

SVN整合MyEcli

2010-06-01 12:36:04

SVN分支與合并

2010-05-20 12:43:37

SVN Update命
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)