red hat enterprise linux 7发布后 , 发现防火墙也变了 , 如何关闭防火墙呢 , 下面是方法
1.查看firewall的状态
[root@sztech7 ~]# systemctl status firewalld
firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since 五 2014-05-23 13:29:44 CST; 2min 27s ago
Process: 840 ExecStart=/usr/sbin/firewalld –nofork –nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 840 (code=exited, status=0/SUCCESS)
5月 23 13:26:41 sztech7 systemd[1]: Started firewalld – dynamic firewall daemon.
5月 23 13:29:42 sztech7 systemd[1]: Stopping firewalld – dynamic firewall daemon…
5月 23 13:29:44 sztech7 systemd[1]: Stopped firewalld – dynamic firewall daemon.
5月 23 13:30:23 sztech7 systemd[1]: Stopped firewalld – dynamic firewall daemon.
[root@sztech7 ~]#
2.临时停止
[root@sztech7 ~]# systemctl stop firewalld
3.禁用firewall启动 , 后重启后不会自动启动
[root@sztech7 ~]# systemctl disable firewalld
rm ‘/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service’
rm ‘/etc/systemd/system/basic.target.wants/firewalld.service’
4.确认一下服务禁用
[root@sztech7 ~]# systemctl status firewalld
firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
Active: inactive (dead)收起
【linux服务器关闭防火墙 redhat关闭防火墙命令】
推荐阅读
- 数码软件产品教程:vivox60怎么去水印关闭相机水印教程
- 数码软件产品教程:一加8t怎么关闭上滑搜索关闭上滑搜索教程
- linux常用基本命令 linux查看文件个数的命令
- 终身免费云服务器 免费的linux服务器
- 美驻成都总领事馆关闭时间 美驻成都总领事馆什么时候关闭
- 数码知识:keep手环闹钟怎么关keep手环关闭闹钟的方法
- 如何用命令来下载文件 linux下载文件到本地命令
- 数码软件产品教程:小米10广告在哪里关一键关闭广告教程
- 免打扰模式怎么关闭
- linux查看端口占用的方法 linux查看哪个端口占用