elasticsearch 7.1搭建完成启动不成功


安装 elasticsearch 默认监听的是本地的 127.0.0.1 地址, 修改 network.host: 0.0.0.0 ,elasticsearch 无法正常启动

查看报错日志: 


tail -f /var/log/messages 

image.png


journalctl -u elasticsearch.service


 image.png


两种方法看不到具体报错日志的原因


查看 配置文件 elasticsearch.yml 的报错日志

/var/log/elasticsearch

配置其中之一项

image.png


discovery.seed_hosts: xxx 


#重启应用

systemctl restart elasticsearch


测试访问:ip:9200


image.png




猜你喜欢

转载自blog.51cto.com/sdsca/2444880