- systemctl status firewalld(查看防火墙状态)
- Active: active (running) 为开启
- Active: inactive (dead)为关闭
- 防火墙的开启与关闭
- systemctl stop firewalld(关闭防火墙)
- systemctl start firewalld (开启防火墙)
- systemctl disable firewalld (关闭防火墙开机自启动)注:关闭自启动前要先关闭防火墙
- 查看关闭Selinux
- getenforce(查看Selinux)
- 关闭Selinux
- setenforce 0(临时关闭selinux)
- (永久关闭selinux ) vi /etc/selinux/config回车然后将SELINUX=enforcing改为SELINUX=disabled
- 拓展:enforcing为启动 permissive为启动但未被强制执行 disabled为关闭
- 拓展:reboot为重启终端
09-23
939
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-14
1559
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-11
904
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-17
1112
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)