首页 > 其他 > 详细

centos7下 开启/关闭/查看firewall运行状态命令

时间:2019-12-19 15:45:24      阅读:157      评论:0      收藏:0      [点我收藏+]

1.开启防火墙:systemctl start firewalld.service

[root@localhost bin]# systemctl start firewalld.service
[root@localhost bin]#

2.查看状态:firewall-cmd --state 开启状态:running 关闭状态:not running

[root@localhost bin]# firewall-cmd --state
running

3.关闭防火墙:systemctl stop firewalld.service

[root@localhost bin]# systemctl stop firewalld.service
[root@localhost bin]# firewall-cmd --state
not running

4.开机不启动防火墙:systemctl disable firewalld.service

[root@localhost bin]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@localhost bin]# 

centos7下 开启/关闭/查看firewall运行状态命令

原文:https://www.cnblogs.com/maxmoore/p/12067685.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!