The IPVs database is installed on the Linux server and cannot be accessed using the client tool. later, I checked the problem with the Linux firewall. after it is disabled, the client can be connected normally, it is very insecure to disable the firewall. Therefore, it is recommended to open the specified port! Linux defense
The IPVs database is installed on the Linux server and cannot be accessed using the client tool. later, I checked the problem with the Linux firewall. after it is disabled, the client can be connected normally, it is very insecure to disable the firewall. Therefore, it is recommended to open the specified port!
A Linux firewall is different from a Windows Firewall. it exists as a service and is disabled as follows:
1. it takes effect permanently and will not be restored after restart
Enable: chkconfig iptables on
Close: chkconfig iptables off
2. it takes effect immediately and recovers after restart
Enable: service iptables start
Disable: service iptables stop
For other services in Linux, you can use the preceding commands to enable and disable the firewall. it is very insecure to disable the firewall. we recommend that you open the specified port as follows:
1. modify the/etc/sysconfig/iptables file and add the following ports to the file:
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 22-j ACCEPT
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 5432-j ACCEPT