centos关闭防火墙命令是什么


本文摘自PHP中文网,作者coldplay.xixi,侵删。

centos关闭防火墙命令:1、临时关闭,代码为【systemctl stop firewalld】;2、禁止开机启动,代码为【systemctl disable firewalld】。

本文操作环境:Windows7系统,centos6&&centos7版本,Dell G3电脑。

centos关闭防火墙命令:

CentOS6关闭防火墙使用以下命令,

1

2

3

4

//临时关闭

service iptables stop

//禁止开机启动

chkconfig iptables off

CentOS7中若使用同样的命令会报错,

1

2

stop  iptables.service

Failed to stop iptables.service: Unit iptables.service not loaded.

这是因为CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令,

1

2

3

4

5

6

//临时关闭

systemctl stop firewalld

//禁止开机启动

systemctl disable firewalld

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

当然,如果安装了iptables-service,也可以使用下面的命令,

阅读剩余部分

相关阅读 >>

CentOS下如何查看端口是否已经开启

CentOS 怎么删除 php

CentOS6怎么添加网易163源

CentOS ifconfig无法使用怎么办

CentOS下安装chrome浏览器后打不开怎么办

CentOS怎么配置dns域名解析

CentOS中的uuid是什么

关于 CentOS 支持复制与粘贴

CentOS下中文文件名乱码怎么解决

CentOS系统下修改文件后如何保存退出

更多相关阅读请进入《CentOS》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...