Operating Environment
[Email protected] sbin]$ cat/etc/redhat-release CentOS Linux release 7.0.1406 (Core) [[email protected] sbin]$ Uname-al Inux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon June, 12:09:22 UTC x86_64 x86_64 x86_64 gnu/linux
Successfully installed the SVN server
[[email protected] sbin]$ netstat -lntup (No info could be read for "-P": geteuid () =1000 but you should Be root.) active internet connections (only servers) proto recv-q send-q local address foreign address state pid/program name tcp 0 0 0.0.0.0:3690 0.0.0.0:* listen -
The server port is turned on normally. There are two solutions for the following reasons after finding the information on the Internet.
Using firewall instead of the Iptables service is the default in CentOS7.0. Although the iptables command continues to be preserved, it is only the same name. You cannot continue to use the previous Iptables configuration method unless you manually remove firewall and then install Iptables.
1) Open the SVN 3690 port of firewall. Execute the following statement before restarting firewall
[Email protected] sysconfig]# firewall-cmd--permanent--add-port=3690/tcpsuccess[[email protected] sysconfig]# Systemctl Restart Firewalld.service
2) Uninstall the firewall, install the Iptables service, and then open the SVN 3690 port.
[[email protected] sysconfig]# systemctl stop firewalld.service[[email protected ] sysconfig]# systemctl disable firewalld.servicerm '/etc/systemd/system/ Dbus-org.fedoraproject.firewalld1.service ' rm '/etc/systemd/system/basic.target.wants/firewalld.service ' [[ Email protected] sysconfig]# yum install iptables-services Loaded plugin: fastestmirrorbase | 3.6 kb 00:00:00 loadIng mirror speeds from cached hostfile Resolving dependencies--> checking transaction---> packages iptables-services.x86_64.0.1.4.21-13.el7 will be install--> to resolve dependencies to complete the dependency relationship ====================== ========================================================================================= package Architecture version Source size ================== ============================================================================================= is installing: Iptables-services x86_64 1.4.21-13.el7 base 49 k Transaction Summary ============= ================================================================================================== installation Total downloads for 1 packages: 49 k installation size: 23 kis this ok [y/d/n]: ydownloading packages :running transaction checkrunning transaction testtransaction test succeededrunning transaction is installing : iptables-services-1.4.21-13.el7.x86_64 1/1 Validation in : iptables-services-1.4.21-13.el7.x86_64 1/1 installed: iptables-services.x86_64 0:1.4.21-13.el7 finished! [[email protected] sysconfig]# systemctl start iptables.service## Remember to open the iptables to determine if the port is open successfully. [[email protected] sysconfig]# cp iptables iptables_bak[[email protected] SYSCONFIG]# LL IPTABLES*-RW-------. 1 root root 550 6 Month 10  2014 IPTABLES-RW-------. 1 root root 550 3 Month 16 22:24  IPTABLES_BAK-RW-------. 1 root root 1974 3 Month 16 21:38 iptables-config[[email protected] sysconfig]# vi /etc/sysconfig/iptables[[email Protected] sysconfig]# iptables -a input -p tcp -m state --state new -m tcp --dport 3690 -j accept # #一次修改 [[email protected] Sysconfig]# vim iptables-a input -m tcp -p tcp --dport 3690 -j accept # #我把这条命令添加的配置文件 [[ email protected] sysconfig]# service iptables restart# #重启iptables [[email protected] sysconfig]# /sbin/iptables -l -n# #查看端口是否打开参考: Configure as needed, do not turn off the firewall to cause security problems
Centos7 Installing SVN server checkout failed