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"]