今天在搞es时,浏览器不能访问,才想起来,防火墙没有关闭。

  做个小记录:

1.现象

  

 

 

2.命令

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

查看防火墙状态

firewall-cmd --state


停止firewall

systemctl stop firewalld.service


禁止firewall开机启动

systemctl disable firewalld.service

  记录:

  

 

 

 

3.然后

  

 

 posted on 2022-07-13 00:48  曹军  阅读(65)  评论(0编辑  收藏  举报