外网访问不到阿里云服务器的9200端口
2个可能的问题
1.config/elasticsearch.yml
netstat 写成阿里云的内网地址,不要写0.0.0.0或者 阿里云外网地址
2.阿里云控制台添加安全策略9200端口要开放
如果是内网服务器访问不到
1.config/elasticsearch.yml
netstat 注释放开改为0.0.0.0
2.关闭防火墙
service firewalld stop关闭/status查看
或者
service不行用下边指令
systemctl stop/status firewalld
网友评论