使用ElasticSearch问题记录

 

 

 

1.ElasticSearch启动时Job for elasticsearch.service failed because the control process exited with error code.

环境:ubuntu20.04

执行命令:

sudo systemctl enable --now elasticsearch.service

出现报错:

Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

解决方法:

编辑配置文件配置文件:
sudo vi /etc/elasticsearch/elasticsearch.yml
修改下面部分:
network.host: 0.0.0.0
discovery.seed_hosts: ["0.0.0.0"]

 

posted @ 2021-04-21 10:48  ellenxx  阅读(1795)  评论(0编辑  收藏  举报