外部经常因防火墙问题无法访问Linux中的端口,就需要放通IP或彻底关闭防火墙
查看防火状态
systemctl status firewalld
service iptables status
暂时关闭防火墙
systemctl stop firewalld
service iptables stop
永久关闭防火墙
systemctl disable firewalld
chkconfig iptables off
重启防火墙
systemctl enable firewalld
service iptables restart