1、ES中开启远程连接权限
进入es安装目录中config目录中 修改elasticsearch.yml 修改如下配置:
network.host: 0.0.0.0
启动ES服务出现如下错误解决方案:
ERROR: [2] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
解决第一个错误:
vim /etc/sysctl.conf 添加如下命令:
vm.max_map_count=655360
保存退出之后执行如下命令:sysctl -p
解决第二个错误:
vim config/elasticsearch.yml,添如下配置:
discovery.seed_hosts: ["127.0.0.1","你的外网ip"]


发表评论 取消回复