1,安装SVN
安装subversion要先安装其他一些包。(apr,apr-util,neon)
[root@www install]# rpm -ivh subversion-1.4.4-1.i386.rpm
error: Failed dependencies:
apr >= 0.9.7 is needed by subversion-1.4.4-1
apr-util >= 0.9.7 is needed by subversion-1.4.4-1
libapr-0.so.0 is needed by subversion-1.4.4-1
libaprutil-0.so.0 is needed by subversion-1.4.4-1
libneon.so.24 is needed by subversion-1.4.4-1
neon >= 0.24.7 is needed by subversion-1.4.4-1
[root@www install]# rpm -ivh apr-0.9.12-1.i386.rpm
Preparing... #################### [100%]
1:apr ###################### [100%]
[root@www install]# rpm -ivh apr-util-0.9.12-1.i386.rpm
Preparing... ##################### [100%]
1:apr-util ####################### [100%]
[root@www install]# rpm -ivh neon-0.24.7-1.i386.rpm
Preparing... #################### [100%]
1:neon ##################### [100%]
[root@www install]# rpm -ivh subversion-1.4.4-1.i386.rpm
Preparing... #################### [100%]
1:subversion #################### [100%]
2,创建库
svnadmin create /root/svn/repos/
3,启动库
svnserve -d -r /root/svn/repos/ --listen-port 9999
可以不加”--listen-port 9999”,则默认端口为3690。
4,配置svnserve.conf
[root@www repos1]# vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
5,配置passwd
snoopy=password
6,配置authz
[root@www conf]# vi authz
[groups]
admin=snoopy
[/]
@admin=rw
*=r