1.输入命令service firewalld stop防火墙关闭,但是下次开机还会自动启动 2.用systemctl disable firewalld这是设置开机禁用防火墙 修改后一定要刷新一下配置, 让内核参数立即生效。