Linux快速配置svn库,Linux配置svn库


[Author]: kwu 

Subversion依然是大部分公司代码管理的首选,本文介绍Linux快速配置svn库的步骤:


1、安装svn配置库,这里使用的是centos6.6自带的svn

svnserve --version

显示版本:

svnserve,版本 1.6.11 (r934486)


2、创建svn配置仓库

mkdir /opt/svn/repositories
svnadmin create /opt/svn/repositories

3、修改配置文件,相关路径

cd /opt/svn/repositories/conf


1 ) authz

[/]
admin=rw

2) passwd

[users]
# harry = harryssecret
# sally = sallyssecret
admin = 123456

3) svnserve.conf

[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

4、启动svn服务,对应端口3690

svnserve -d -r /opt/svn/repositories

5、停止svn服务

killall svnserve

或者通过查看

 ps -ef|grep svn

kill -9 pid


相关内容