docker 启动es 强制退出

访问9200报错,发现已经强制退出。

用docker logs  ES命令查看ES的日志发现以下两条错误:

[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

编辑 /etc/sysctl.conf,追加以下内容:
vm.max_map_count=262144

然后编辑  elasticsearch.yml
加入一行
cluster.initial_master_nodes: ["127.0.0.1:9300"]

 

 

你可能感兴趣的:(docker,docker,es)