二.设置开机启动文件
1. 编辑/etc/rc.local
文件内容如下(在touch /var/lock/subsys/local下面添加一行)
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don’t
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
svnserve -d -r /opt/svn/repos
如图:

三.启动SVN服务
1.启动svn服务,svn服务默认端口为3690,可以使用“netstat -ntlp”命令查看服务启动是否成功:
#svnserve -d -r /opt/svn/repos
如果已经有svn在运行,可以换一个端口运行
svnserve -d -r /opt/svn/repos –listen-port 3391
这样同一台服务器可以运行多个svnserve
2.启动成功后就可以使用了
a.建议采用TortoiseSVN, 连接地址为: svn://your server address (如果指定端口需要添加端口 :端口号
b.或者用命令行连接:
svn co svn://ip/
连接上之后就可以使用了。
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
