防火墙相关命令如下: firewall-cmd --state 显示centOS7防火墙状态systemctl stop firewalld 关闭防火墙systemctl disable firewalld 禁止开机自启动