CentOS7关闭防火墙

建站服务器 CentOS 7.0默认使用的是firewall作为防火墙。

常用firewall命令

点击(此处)折叠或打开

10余年的琼山网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。成都全网营销的优势是能够根据用户设备显示端的尺寸不同,自动调整琼山建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联从事“琼山网站设计”,“琼山网站推广”以来,每个客户项目都认真落实执行。 systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd -- state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
操作示例 查看防火墙状态

点击(此处)折叠或打开

[hoegh@localhost Desktop]$ firewall-cmd --state
running
关闭防火墙

点击(此处)折叠或打开

[hoegh@localhost Desktop]$ systemctl stop firewalld.service
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
PolicyKit daemon reconnected to bus.
Attempting to re-register as an authentication agent.
We are now a registered authentication agent.
[hoegh@localhost Desktop]$
[hoegh@localhost Desktop]$ firewall-cmd --state
not running
[hoegh@localhost Desktop]$
禁止自动启动

点击(此处)折叠或打开

[hoegh@localhost Desktop]$
[hoegh@localhost Desktop]$ systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[hoegh@localhost Desktop]$
~~~~~~~ the end~~~~~~~~~
hoegh
2017.11.3

网页题目:CentOS7关闭防火墙
分享URL:http://bzwzjz.com/article/cpepgh.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 外贸营销网站建设 成都网站建设 移动手机网站制作 网站设计 网站建设 网站建设公司 自适应网站建设 成都网站设计 成都网站建设 成都网站建设 成都商城网站制作 企业网站建设 网站建设改版 成都网站建设公司 四川成都网站建设 成都网站建设 成都企业网站制作 营销网站建设 营销网站建设 成都网站设计 企业网站设计 成都网站建设