1.检查ip权限2.max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]3.max number of threads [1024] for user [user] is too low, increase to at least [4096]4.如果使用的有防火墙没有开启port 端口5.received plaintext http traffic on an https channel, closing connection Netty4HttpChannel6.elasticsearch 账号密码7.initial heap size [268435456] not equal to maximum heap size [536870912];
1.检查ip权限centos7,在安装路径下的config/elasticsearch.yml文件中
network.host: 0.0.0.02.max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
/etc/sysctl.conf下最后一行添加
vm.max_map_count=655360
并且执行 sysctl -p 命令让其生效
3.max number of threads [1024] for user [user] is too low, increase to at least [4096]etc/security/limits.d/90-nproc.conf下修改为
* soft nproc 1024 # 将上面的修改为: * soft nproc 40964.如果使用的有防火墙没有开启port 端口
就开启端口,比如腾讯云直接添加新端口 9200
5.received plaintext http traffic on an https channel, closing connection Netty4HttpChannel出现以下语句
received plaintext http traffic on an https channel, closing connection Netty4HttpChannel
{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:55367}
是因为开启了 ssl 认证。
在 ES/config/elasticsearch.yml 文件中把 xpack.security.http.ssl:enabled 设置成 false 即可
xpack.security.http.ssl: enabled: false6.elasticsearch 账号密码
就设置免密登录就好
elasticsearch.yml 文件, 把 xpack.security.enabled 属性设置为 false 即可。
# Enable security features xpack.security.enabled: false7.initial heap size [268435456] not equal to maximum heap size [536870912];
建议conf/jvm.option中大小内存要一致
由于es底层是lucene基于java语言实现的,所以也要调整jvm
-Xms512m -Xmx512m



