码迷,mamicode.com
首页 > 系统相关 > 详细

Linux SVN服务器配置指南

时间:2017-06-07 10:12:21      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:save   linux   src   repo   code   pass   conf   kill   height   

首先,克隆一Linux虚拟机,开机启动后,网卡不起来,采用以下方法,直到重启后网卡才up起来。
>/etc/udev/rules.d/70-persistent-net.rules
vi /etc/sysconfig/network-scripts/ifcfg-eth0
#UUID=e2c51179-659c-4c94-a0ba-e1b7e601a024
#HWADDR=00:0c:29:1d:b6:28
:wq!
reboot  //重启使网卡起来生效。
yum install subversion -y
mkdir /etc/subversion/svnrepos
svnadmin create /etc/subversion/svnrepos/davesvn
ls /etc/subversion/svnrepos/davesvn/
cd /etc/subversion/svnrepos/davesvn/conf/
vi svnserve.conf
anon-access = read
auth-access = write
password-db = passwd
realm = My First Repository    //以上四项去掉#号
:wq!

vi passwd
[users]
# harry = harryssecret
# sally = sallyssecre
vincent = apple
:wq!

vi authz
[groups]
admin = vincent
devteam1 = john,rachel,sally
devteam2 = kate,peter,mark
docs = bob,jane,mike
training = zak
[davesvpn:/]
@admin = rw
@dev = rw
[/]
* = r
@admin = rw
[proj1:/]
@devteam1 = rw
[proj2:/]
@devteam2 = rw
[bigproj:/]
@devteam1 = rw
@devteam2 = rw
trevor = rw
[/trunk/doc]
:wq!

/sbin/iptables -I INPUT -p tcp --dport 3690 -j ACCEPT
/etc/init.d/iptables save
service iptables restart
svnserve -d -r /etc/subversion/svnrepos
ps -aux|grep svn
kill -9 <进程号>   //停用subversion

技术分享

Linux SVN服务器配置指南

标签:save   linux   src   repo   code   pass   conf   kill   height   

原文地址:http://www.cnblogs.com/vincent-liang/p/6954388.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!