今天小編跟大家分享一篇關(guān)于openSUSE10.3上搭建svn服務(wù)器的操作流程,感興趣的朋友跟小編一起來(lái)了解一下吧!
教程如下:
準(zhǔn)備階段
首先需要保證系統(tǒng)中有如下的包:
apache2, apache2-doc, apache2-prefork, libapr1, libapr-util1, neon, subversion, subversion-server
要獲得如上的這些包 需要配置yast源來(lái)安裝這些包。
加入一個(gè)新的yast源:(舉例)
zypper addrepo http://210.25.132.176/distro SUSE_roc
SUSE_roc為軟件源的別名,可以自己定義
之后執(zhí)行命令yast進(jìn)入管理界面,選擇software management,系統(tǒng)就會(huì)自己來(lái)查找和檢索驗(yàn)證軟件源了。
完成之后,就可以使用tab來(lái)選擇search安裝如上的軟件了。
關(guān)于源的操作:
加入源:zypper addrepo zypper addrepo http://210.25.132.176/distro SUSE_roc
刪除源:zypper rr ‘openSUSE-10.3-DVD 10.3′
配置階段
建立svn用戶組和svn用戶
(su) groupadd -r svn
useradd -r -g svn -m -d /srv/svn -s /bin/false svn加載svn模塊:
(su) a2enmod dav
(su) a2enmod dav_svn修改/etc/apache2/conf.d/subversion.conf文件為如下形式:
CODE:# Example configuration for a subversion repository
# see /usr/share/doc/packages/subversion for the full documentation
# Set up single repository directory ‘kdrepos’
# This has open read access, but limited write (commit) access
DAV svn
SVNParentPath /srv/svn/BOSS
# Allow the ‘kdrepos’ index page to list all the repositories it contains
SVNListParentPath On
# Limit write permission to list of valid users.
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
# Message to give to the committer
AuthName “Write access requires a password”
# File listing users with write (commit) access
AuthUserFile /srv/svn/user_access/BOSS_passwdfile
Require valid-user
三三在線http://www.33ol.com/,服務(wù)器租用 托管 高防服務(wù)器租用,機(jī)柜大帶寬租用,我司有:四川德陽(yáng)機(jī)房,廣東佛山機(jī)房,大朗機(jī)房,松山湖機(jī)房,香港機(jī)房CN2,杭州BGP高防,新加坡機(jī)房,菲律賓,韓國(guó),日本 美國(guó),高防 無(wú)防服務(wù)器。企點(diǎn)Q:2852361322電話:13924367540