本文主要讲解实现svn多版本库管理,安装方法请见:
http://blog.csdn.net/design321/article/details/9346513
1,安装svn服务
检查安装
svnserve –version
svn --version
2,创建版本库
mkdir /opt/svndata
svnadmin create /opt/svndata/project1
svnadmin create /opt/svndata/project2
3,修改配置
cd /opt/svndata/project1/conf
vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = /opt/svndata/project1
vi passwd
[users]
bussvc = 123456
chenjuan = 123456
xiaochen = 123456
vi authz
[groups]
admin = bussvc
test = chenjuan
yunwei = xiaochen
[/] 所有权限
@admin = rw
[project1:/] 项目1权限
@test = rw
[project1:/dir] 项目1下的 dir1目录权限
@test = rw
[project2:/] 项目2权限
@test = rw
4,启动
svnserve -d -r /opt/svndata/
5,关闭
[root@localhost conf]# lsof -i:3690
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
svnserve 15772 root 3u IPv6 196131 TCP *:svn (LISTEN)
[root@localhost conf]# kill 15772
6,访问
svn://192.168.10.62:3690/project1
svn://192.168.10.62:3690/project2