Linux里面怎么搭建SVN?
SVN是Subversion的简称,是一个开放源代码的版本控制系统,相较于RCS、CVS,它采用了分支管理系统,它的设计目标就是取代CVS。互联网上很多版本控制服务已从CVS迁移到Subversion。说得简单一点SVN就是用于多个人共同开发同一个项目,共用资源的目的.
Linux上部署4个项目的svn操作步骤:搭建SVN
[root@localhost ~]# yum -y install subversion
[root@localhost ~]# svnserve --version
svnserve, version 1.6.11 (r934486)
......
[root@localhost ~]# mkdir -p /a/svn/
[root@localhost ~]# mkdir /a/passwd
[root@localhost ~]# svnserve -d -r /a/svn
[root@localhost ~]# svnadmin create /a/svn/repo1
[root@localhost ~]# svnadmin create /a/svn/repo2
[root@localhost ~]# cp /a/svn/repo1/conf/passwd /a/passwd/
[root@localhost ~]# cp /a/svn/repo1/conf/authz /a/passwd/
[root@localhost ~]# vim /a/svn/repo1/conf/svnserve.conf
[general]
anon-access=none
auth-access=write
password-db = /a/passwd/passwd
authz-db = /a/passwd/authz
realm=1111111111111111
[root@localhost ~]# mv /a/svn/repo2/conf/svnserve.conf
/a/svn/repo2/conf/svnserve.conf.bak
[root@localhost ~]# mv /a/svn/repo3/conf/svnserve.conf
/a/svn/repo3/conf/svnserve.conf.bak
[root@localhost ~]# mv /a/svn/repo4/conf/svnserve.conf
/a/svn/repo4/conf/svnserve.conf.bak
[root@localhost ~]# cp /a/svn/repo1/conf/svnserve.conf
/a/svn/repo2/conf/svnserve.conf
[root@localhost ~]# cp /a/svn/repo1/conf/svnserve.conf
/a/svn/repo3/conf/svnserve.conf
[root@localhost ~]# cp /a/svn/repo1/conf/svnserve.conf
/a/svn/repo4/conf/svnserve.conf
[root@localhost ~]# vim /a/passwd/passwd
[users]
chen=chen123
lu=lu123
zhang=zhang123
wang=wang123
hua=hua123
dong=dong123
[root@localhost ~]# vim /a/passwd/authz
[groups]
java=chen,lu,zhang
ios=wang
web=hua
jishu=dong
[repo1:/]
@java=rw
[repo2:/]
@ios=rw
[repo3:/]
@web=rw
[repo4:/]
@jishu=rw
[root@localhost conf]# chmod 700 /a/passwd/*
[root@localhost ~]# pkill svnserve
[root@localhost ~]# ps -ef |grep svn
root 2405 2106 0 18:59 pts/1 00:00:00 grep svn
[root@localhost ~]# svnserve -d -r /a/svn/
[root@localhost ~]# ps -ef |grep svn
root 2411 1 0 19:00 ? 00:00:00 svnserve -d -r /a/svn/
root 2413 2106 0 19:00 pts/1 00:00:00 grep svn