详细CentOS-6.3安装配置SVN的方法

2019-10-13 13:52:55王旭

配置防火墙端口

[root@localhost conf]# vi /etc/sysconfig/iptables

添加以下内容:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT

保存后重启防火墙

[root@localhost conf]# service iptables restart

启动SVN

svnserve -d -r /opt/svn/repositories

查看SVN进程

[root@localhost conf]# ps -ef|grep svn|grep -v grep
 root   12538   1 0 14:40 ?    00:00:00 svnserve -d -r /opt/svn/repositories

检测SVN 端口

[root@localhost conf]# netstat -ln |grep 3690
 tcp    0   0 0.0.0.0:3690        0.0.0.0:*          LISTEN

停止重启SVN

[root@localhost password]# killall svnserve  //停止 
[root@localhost password]# svnserve -d -r /opt/svn/repositories // 启动 

测试

SVN服务已经启动,使用客户端测试连接。 

客户端连接地址:svn://192.168.15.231

用户名/密码: zhoulf/123456

测试创建文件夹等操作。

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持易采站长站。