Linux open ports
In Linux, the server cannot be connected when software access is installed. In this case, check whether the corresponding port is enabled. For example, after svn is installed, unable to connect:
When the svn service is started, you Can use commands on the server to check out the files, but the files cannot be checked out on other computers. The following prompt is displayed: "svn: Can't connect to host '*. *. *.. I checked the firewall and saw that port 3690 was not open to the outside world. I fixed the problem by modifying the configuration file: Modify as follows:
[Root @ nb home] #More/etc/sysconfig/iptables# Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. * filter: input accept [0: 0]: forward accept [0: 0]: output accept [0: 0]-a input-m state -- state ESTABLISHED, RELATED-j ACCEPT-A INPUT-p icmp-j ACCEPT-A INPUT-I lo-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 8080-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 3306-j ACCEPT-A INPUT-m state -- state NEW-m tcp-p tcp -- dport 8009-j ACCEPT-A INPUT-m state -- state NEW -m tcp-p tcp -- dport 8081-j ACCEPT-A input-m state -- state NEW-m tcp-p tcp -- dport 3690-j ACCEPT-A input-j REJECT -- reject-with icmp-host-prohibited-a forward-j REJECT -- reject-with icmp-host-prohibitedCOMMIT [root @ nb home] #/Etc/init. d/iptables restartIptables: clear firewall rules: [OK] iptables: Set the chain to policy ACCEPT: filter [OK] iptables: uninstalling module: [OK] iptables: Application Firewall Rules: [OK]