我是在Windows上启动的es,进入到安装包的bin目录下之后,双击elasticsearch.bat文件,
启动日志报错:could not delete old chunks for geoip database [GeoLite2-ASN.mmdb]org.elasticsearch.action.search. …
我是参考这位博主的思路,在配置文件中添加一行配置:
ingest.geoip.downloader.enabled: false
加上之后启动不再报错,但是我的localhost:9200访问不通,于是参考了https://blog.csdn.net/qq_39940205/article/details/106849313,添加了
network.host: 0.0.0.0
discovery.seed_hosts: ["0.0.0.0", "[::1]"],nethost
不过,添加了还是不能访问9200端口,最后是通过修改xpack.security.enabled: true 为
xpack.security.enabled: false 之后就可以访问了。