Solve the problem that the SVN server in CentOS fails to connect the client to the SVN Server
I won't talk about installing the SVN service in centos...
Svnserve -- version [view version]
First, check netstat-tnlp to see if the svn service is enabled on port 3690.
Killall 19335 (svn pid Number returned by the preceding command)
Create a repository:
Mkdir-p/home/svnserve/app/project1
Svnadmin create/home/svnserve/app/project1
Svnserve-d (Independent Port running)-r (warehouse address) warehouse address
Svnserve-d-r/home/svnserve/app/project1 // start the warehouse service
OK! Repository created
Next, create a directory on windows.
For example:
Create --> E:/test --> enter this directory ---> right-click checkout
A dialog box is displayed.
Linux Server IP address, for example, 192.168.181.139
URL: svn: // 192.168.181.139
However, I am prompted a connection failure error, which is due to firewall reasons. The solution is as follows:
Delete invalid firewall configurations:
/Sbin/iptables-a input-m state -- state NEW-m tcp-p tcp -- dport 3690-j ACCEPT
Set the firewall as follows:
/Sbin/iptables-I INPUT-p tcp -- dport 3690-j ACCEPT
/Etc/rc. d/init. d/iptables save [save]
OK! Now we can find that it can be connected.