防火墙
来源:互联网 发布:mac如何修改用户头像 编辑:程序博客网 时间:2024/04/29 23:40
1) 重启后生效
开启: chkconfig iptables on关闭: chkconfig iptables off
2) 即时生效,重启后失效
开启: service iptables start关闭: service iptables stop
centos 7:
systemctl stop firewalld.service #停止systemctl disable firewalld.service #禁用.
3) postgres 5432不能连接
nc -z 192.168.4.224 5432 failiptables属于系统服务,netstat找不到解决方法:iptables -A INPUT -p tcp --dport 5432 -j ACCEPT
0 0