第一步: yum install subversion;
第二步: svnadmin create /data/cluster/sa/vc
第三步: mkdir /data/cluster/sa/vc/svn
第四步:
svnadmin create /data/cluster/sa/vc/svn/mg
svnadmin create /data/cluster/sa/vc/svn/html
svnadmin create /data/cluster/sa/vc/svn/yw
第五步:配置
[[email protected] vc]# cat conf/authz
[groups]
admin=king,ocean,hanke,aiden
mg=chenlin,aiden,xin,yuxiang,xiangcheng,king,chenggang
yongwo=yongwo,xsk,zyj
html=sam
[bf:/]
@admin= rw
[mg:/]
@mg = rw
[mg:/trunk/ywcf]
@yongwo=rw
[html:/]
@mg = rw
@html = rw
[[email protected] vc]# cat conf/passwd
[users]
king=123456
ocean=123456
hanke=123456
aiden=123456
xiangcheng=123456
xin=123456
yuxiang=123456
chenlin=123456
yongwo=123456
sam=123456
[email protected]
[email protected]
chenggang=123456
[[email protected] vc]# cat conf/svnserve.conf |grep -v "^#";
[general]
anon-access = none
password-db = passwd
authz-db = authz
realm = /data/cluster/sa/vc/svn
[sasl]
第六步:启动
[[email protected] vc]#/usr/bin/svnserve --daemon --pid-file=/var/run/svnserve.pid --log-file=//data/cluster/sa/vc/logs/svnserve.log --config-file=/data/cluster/sa/vc/conf/svnserve.conf -r /data/cluster/sa/vc/svn