天天看点

安装elasticsearch遇到的问题

如果此时敲入命令行 ./elasticsearch来启动时,会有可能出现如下问题:

1) [3]: max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144] 

这是由于进程的虚拟内存空间不足。

修改配置文件 : # vim /etc/sysctl.conf

在下面添加: vm.max_map_count=262144

然后执行 # sysctl -p

2)[1] bootstrap checks failed

[1]: 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

这时候继续编辑elasticsearch.yml文件,将 #cluster.initial_master_nodes: ["node-1", "node-2"] 修改为 cluster.initial_master_nodes: ["node-1"],记得保存

es

继续阅读