当前位置:网站首页 > 新媒体 > 正文

redhat关闭防火墙命令(linux服务器关闭防火墙)

0 李勇seo 李勇seo 2025-04-25 22:35 3

red hat enterprise linux 7关闭防火墙的方法

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 ~]#

red hat enterprise linux 7关闭防火墙的方法

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)收起

red hat enterprise linux 7关闭防火墙的方法

李勇seo

李勇seo

TA很懒,啥都没写...

本文暂时没有评论,来添加一个吧(●'◡'●)

取消回复欢迎 发表评论:

@百闻站长 本站部分内容转自互联网,若有侵权等问题请及时与本站联系,我们将在第一时间删除处理。 | 粤ICP备2025402138号 | (地图