CentOS7防火墙
好久不用忘记了,特此记录下
1.查看防火墙状态
systemctl status firewalld
2.开启防火墙
systemctl start firewalld
3.关闭防火墙
systemctl stop firewalld
4.防火墙开启5432端口
firewall-cmd --permanent --zone=public --add-port=5432/tcp #立即生效 firewall-cmd --reload
5.查看开放的端口列表
firewall-cmd --zone=public --list-ports