centos7.2对防火墙的操作

Posted jxba

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7.2对防火墙的操作相关的知识,希望对你有一定的参考价值。

启动一个服务:systemctl start firewalld.service
关闭一个服务:systemctl stop firewalld.service
重启一个服务:systemctl restart firewalld.service
显示一个服务的状态:systemctl status firewalld.service
在开机时启用一个服务:systemctl enable firewalld.service
在开机时禁用一个服务:systemctl disable firewalld.service
查看服务是否开机启动:systemctl is-enabled firewalld.service;echo $?
查看已启动的服务列表:systemctl list-unit-files|grep enabled

 







以上是关于centos7.2对防火墙的操作的主要内容,如果未能解决你的问题,请参考以下文章

如何在Centos7.2安装HDP2.6

centos7.2系统基本优化

CENTOS7.2安装CDH5.10和Kudu1.2

0002-CENTOS7.2安装CDH5.10和Kudu1.2

0002-CENTOS7.2安装CDH5.10和Kudu1.2

centos7.2防火墙为啥关不了