环境:
- centos7.6 x64 最小化安装
临时关闭防火墙:
[root@localhost ~]# systemctl stop firewalld.service
临时启动防火墙:
[root@localhost ~]# systemctl start firewalld.service
防火墙会每次随着系统启动,要禁用防火墙的开机自动启动
禁用防火墙的开机自启动:
[root@localhost ~]# systemctl disable firewalld.service
打开防火墙开机自启动:
[root@localhost ~]# systemctl enable firewalld.service