当前位置:首页 > 技术分享 > 正文内容

CentOS7查看和关闭防火墙

3年前 (2021-09-21)技术分享

CentOS 7.0默认使用的是firewall作为防火墙

查看防火墙状态:

firewall-cmd --state

停止firewall

systemctl stop firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service

Centos7开放及查看端口
– 开放指定端口
firewall-cmd --zone=public --add-port=1935/tcp --permanent

– 关闭指定端口
firewall-cmd --zone=public --remove-port=5672/tcp --permanent

– 重启防火墙
firewall-cmd --reloadl


扫描二维码推送至手机访问。

版权声明:本文由虎佩网发布,如需转载请注明出处。

本文链接:http://hupei.net/post/74.html

分享给朋友:
返回列表

没有更早的文章了...

下一篇:centos 安装惠普打印机驱动

“CentOS7查看和关闭防火墙” 的相关文章