Build subversion server step by step

本文详细介绍如何从零开始搭建Subversion (SVN) 版本控制系统服务器。内容包括安装配置Apache服务器、Subversion及相关依赖,创建版本库,设置访问权限及用户认证等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#descrip: build subversion server step by step
#author: liyangth@gmail.com
#date: 10/30/2006
1.install apache2
#/*tar xjvf httpd-2.0.58.tar.bz2*/
#/* config and compiler httpd-2.0.58 for apache2 */
./configure --enable-dav --enable-so --prefix=/usr/local/apache2/
make
make install
#/* start appache service */
cd /usr/local/apache2/bin
./apachectl start
#/ * open website look at wether apache work * /
#http://localhost/
2.install subversion
#tar subversion-1.4.0 and subversion-deps-1.4.0 on the same dir
#/* config and compiler subversion1.4.0*/
./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/apache2/ --with-apr-util=/usr/local/apache2 --with-ssl --with-zlib --enable-maintainer-mod
make
make install
3.
#create repository thar path
mkdir /home/liyangth/repository
#create repository for project source
svnadmin create /home/liyangth/repository/test
4.config service
#restart apache if you like safety
cd /usr/local/apache2/bin
./apachectl start
./apachectl restart
#config apache server
vi /usr/local/apache2/conf/httpd.conf
<Location /svn>
DAV svn
SVNParentPath /home/liyangth/repository
AuthzSVNAccessFile /home/liyangth/repository/authz.conf
AuthType Basic
AuthName "Embedded Group Subversion"
AuthUserFile /home/liyangth/repository/userfile
Require valid-user
</Location>
5.
#add user and passwd
htpasswd -c /home/liyangth/repository/userfile worm
#if you first create userfile you must adding -c,if userfile exist you can use
htpasswd userfile usera
6.set up user access purview
vi /home/liyangth/repository/authz.conf
[test:/]
worm = rw
usera = r
7.some detail
/* close fire wall */
/etc/init.d/iptables stop
#notice!!!
vi /usr/local/apache2/conf/httpd.conf
Change "User ..." to "User liyangth" /* User is builder who set up this subversion */
#notice!!!
chown -R liyangth /home/liyangth/repository
chmod 770 /home/liyangth/repository
8.change start script
#ps
vi /etc/profile
/usr/sbin/apachectl start
export SVN_EDITOR=vi
9.complete
#restart svn+apache
/usr/local/apache2/bin/apachect restart
/* if restatr failt, may be old httpd service running, so you must stop it */
10.test
#look at website http://localhost/svn/test 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值