Wondercease

浙ICP备2022017321号

ElasticSearch(一)安装

1.官网直接下对应的版本,和springboot适配的版本,不适配 springboot连接的时候也会报错,注意一下换个版本就好

2.根据需要修改yml

3.bin windows运行bat

常见错误:

1.received plaintext http traffic on an https channel, closing connection

原因:
是因为ES8默认开启了 ssl 认证。
修改elasticsearch.yml配置文件
将xpack.security.enabled设置为false
xpack.security.enabled: false

2.启动内存不够

conf/jvm.options 修改内存调小一点

3. exception during geoip databases update

更新地图的一些数据库,这里直接禁掉即可,用到时再说,配置文件conf/elasticsearch.yml,增加配置

ingest.geoip.downloader.enabled: false

发表评论

您的电子邮箱地址不会被公开。