Linux快速配置svn库

[Author]: kwu 

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


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

[plain]  view plain copy
  1. svnserve --version  

显示版本:

svnserve,版本 1.6.11 (r934486)


2、创建svn配置仓库

[plain]  view plain copy
  1. mkdir /opt/svn/repositories  
  2. svnadmin create /opt/svn/repositories  

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

[plain]  view plain copy
  1. cd /opt/svn/repositories/conf  


1 ) authz

[plain]  view plain copy
  1. [/]  
  2. admin=rw  

2) passwd

[plain]  view plain copy
  1. [users]  
  2. # harry = harryssecret  
  3. # sally = sallyssecret  
  4. admin = 123456  

3) svnserve.conf

[plain]  view plain copy
  1. [general]  
  2. anon-access = none  
  3. auth-access = write  
  4. password-db = passwd  
  5. authz-db = authz  

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

[plain]  view plain copy
  1. svnserve -d -r /opt/svn/repositories  

5、停止svn服务

[plain]  view plain copy
  1. killall svnserve  

或者通过查看

[plain]  view plain copy
  1. ps -ef|grep svn  

kill -9 pid


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值