用的腾讯云服务器:
1. 进入控制台 --> 安全组 --> 添加规则 , 开放9200端口
2. 配置/usr/local/es/elasticsearch-5.5.2/config/ 路径下的 elasticsearch.yml
http.host: 0.0.0.0 http.port: 9200
bash /usr/local/es/elasticsearch-5.5.2/bin/elasticsearch -d
{ "name" : "QHNWXbg", "cluster_name" : "elasticsearch", "cluster_uuid" : "hVyq1z2LR9aEiyBhEsU-fw", "version" : { "number" : "5.5.2", "build_hash" : "b2f0c09", "build_date" : "2017-08-14T12:33:14.154Z", "build_snapshot" : false, "lucene_version" : "6.6.0" }, "tagline" : "You Know, for Search" }
感谢:
black_moods的elasticsearch 配置外网访问
原文:https://www.cnblogs.com/Uzai/p/11297690.html