栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Elasticsearch访问 IP:9200 问题大全

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Elasticsearch访问 IP:9200 问题大全

Elasticsearch访问 IP:9200 问题

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.0
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=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 4096
4.如果使用的有防火墙没有开启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: false
6.elasticsearch 账号密码

就设置免密登录就好
elasticsearch.yml 文件, 把 xpack.security.enabled 属性设置为 false 即可。

# Enable security features
xpack.security.enabled: false
7.initial heap size [268435456] not equal to maximum heap size [536870912];

建议conf/jvm.option中大小内存要一致
由于es底层是lucene基于java语言实现的,所以也要调整jvm

-Xms512m
-Xmx512m
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/778542.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号