centos如何操作对外开放80,3306端口号或者其他端口号
systemctl start firewalld.service #开启防火墙firewall
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
firewall-cmd --zone=public --add-port=8006/tcp --permanent
firewall-cmd --zone=public --add-port=8081/tcp --permanent
firewall-cmd --zone=public --add-port=8010/tcp --permanent
重启防火墙:firewall-cmd --reload