centeos中配置svn服務(wù)器

安裝subverion

yum install subversion

創(chuàng)建svn服務(wù)

創(chuàng)建目錄

mkdir /svn
mkdir svn/demo

創(chuàng)建svn倉庫

svnadmin  create  svn/demo

配置用戶權(quán)限

  • svnconf: 主配置文件
[root@localhost conf]# vim 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.
# 默認值為read, 無法查看日志
anon-access = none         ##注意前邊不要有空格球涛,要頂齊
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 = This is My First Test Repository   ##這個是提示信息
[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256
  • auth: 用戶授權(quán)配置
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
###  - a single user,
###  - a group of users defined in a special [groups] section,
###  - an alias defined in a special [aliases] section,
###  - all authenticated users, using the '$authenticated' token,
###  - only anonymous users, using the '$anonymous' token,
###  - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').

[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin=duans

# [/foo/bar]
# harry = rw
# &joe = r
# * =

[/]
duans = rw
*=

# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[repository:/]
@admin = rw 
  • passwd: 配置用戶名密碼
# harry = harryssecret
# sally = sallyssecret
duans = duans

重啟服務(wù)

  • 查看進程
ps -aux grep | svn
# 2835為進程號
root      2835  0.0  0.1 184868  1096 ?        Ss   15:30   0:00 svnserve -d -r web16/
root      3951  0.0  0.0 112712   984 pts/1    R+   15:49   0:00 grep --color=auto svn
  • 殺死進程
kill -s 9 進程號
kill  -s  9  2835
  • 重新啟動服務(wù)
svnsever  -d  -r  svn/demo
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末豺旬,一起剝皮案震驚了整個濱河市把将,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖昧识,帶你破解...
    沈念sama閱讀 219,188評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件攻臀,死亡現(xiàn)場離奇詭異焕数,居然都是意外死亡,警方通過查閱死者的電腦和手機刨啸,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,464評論 3 395
  • 文/潘曉璐 我一進店門堡赔,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人设联,你說我怎么就攤上這事善已。” “怎么了离例?”我有些...
    開封第一講書人閱讀 165,562評論 0 356
  • 文/不壞的土叔 我叫張陵换团,是天一觀的道長。 經(jīng)常有香客問我宫蛆,道長艘包,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,893評論 1 295
  • 正文 為了忘掉前任洒扎,我火速辦了婚禮辑甜,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘袍冷。我一直安慰自己磷醋,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 67,917評論 6 392
  • 文/花漫 我一把揭開白布胡诗。 她就那樣靜靜地躺著邓线,像睡著了一般。 火紅的嫁衣襯著肌膚如雪煌恢。 梳的紋絲不亂的頭發(fā)上骇陈,一...
    開封第一講書人閱讀 51,708評論 1 305
  • 那天,我揣著相機與錄音瑰抵,去河邊找鬼你雌。 笑死,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的婿崭。 我是一名探鬼主播拨拓,決...
    沈念sama閱讀 40,430評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼氓栈!你這毒婦竟也來了渣磷?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,342評論 0 276
  • 序言:老撾萬榮一對情侶失蹤授瘦,失蹤者是張志新(化名)和其女友劉穎醋界,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體提完,經(jīng)...
    沈念sama閱讀 45,801評論 1 317
  • 正文 獨居荒郊野嶺守林人離奇死亡形纺,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,976評論 3 337
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了氯葬。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片挡篓。...
    茶點故事閱讀 40,115評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖帚称,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情秽澳,我是刑警寧澤闯睹,帶...
    沈念sama閱讀 35,804評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站担神,受9級特大地震影響楼吃,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜妄讯,卻給世界環(huán)境...
    茶點故事閱讀 41,458評論 3 331
  • 文/蒙蒙 一孩锡、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧亥贸,春花似錦躬窜、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,008評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至朴摊,卻和暖如春默垄,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背甚纲。 一陣腳步聲響...
    開封第一講書人閱讀 33,135評論 1 272
  • 我被黑心中介騙來泰國打工口锭, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人介杆。 一個月前我還...
    沈念sama閱讀 48,365評論 3 373
  • 正文 我出身青樓鹃操,卻偏偏與公主長得像韭寸,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子组民,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 45,055評論 2 355

推薦閱讀更多精彩內(nèi)容