前提:es安装不能使用root用户,需要单独设置用户,且对es文件夹赋予权限。
1、
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
解决方案:
编辑 /etc/security/limits.conf,追加以下内容; username soft nofile 65536
username hard nofile 65536 此文件修改后需要重新登录用户,才会生效
此处username代表启动es的用户名
2、
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决方案:
在/etc/sysctl.conf文件最后添加一行
vm.max_map_count=262144
执行/sbin/sysctl -p 立即生效
3、无法通过外网访问
解决方案:
config/elasticsearch.yml配置文件, network.host: 0.0.0.0
4、
You must address the points described in the following [1] lines
before starting Elasticsearch.
解决方案:
修改config/elasticsearch.yml配置文件 修改配置文件里面的如下语句,
cluster.initial_master_nodes: [“node-1”, “node-2”]下面增加一行
cluster.initial_master_nodes: [“node-1”] 一定记得冒号后面的空格