centos7如何查看防火墙是否开启


本文摘自PHP中文网,作者尚,侵删。

一、防火墙的开启、关闭、禁用命令

推荐教程:centos使用教程

(1)设置开机启用防火墙:systemctl enable firewalld.service

(2)设置开机禁用防火墙:systemctl disable firewalld.service

(3)启动防火墙:systemctl start firewalld

(4)关闭防火墙:systemctl stop firewalld

(5)检查防火墙状态:systemctl status firewalld

二、使用firewall-cmd配置端口

(1)查看防火墙状态:firewall-cmd --state

(2)重新加载配置:firewall-cmd --reload

(3)查看开放的端口:firewall-cmd --list-ports

(4)开启防火墙端口:firewall-cmd --zone=public --add-port=9200/tcp --permanent

相关视频教程推荐:linux视频教程

以上就是centos7如何查看防火墙是否开启的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

CentOS是linux吗

如何找到CentOS中的iptables文件

CentOS系统终端怎么才能输入中文

CentOS下执行yum命令总是失败

怎么查看CentOS系统版本是32位还是64位

CentOS系统如何删除用户和用户组

CentOS怎么进入图形界面

CentOS终端显示中文乱码怎么办

CentOS怎么安装telnet

CentOS系统无法远程连接怎么办

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



打赏

取消

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

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

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

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

评论

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