Elasticsearch: Job for elasticsearch.service failed

后端 未结 4 969
再見小時候
再見小時候 2021-02-06 05:44

I am currently trying to setup Elasticsearch for a project. I have installed Elasticsearch 7.4.1 and I have also installed Java, t

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 05:54

    Had the same problem with a small virtual machine. The above configurations were already set. The only thing that helped was to increase the start timeout. The standard systemd timeout was just not enough.

    As a precaution, I set the timeout to 5 minutes as follows.

    sudo nano /usr/lib/systemd/system/elasticsearch.service
    

    Added under [Service] section in elasticsearch.service file.

    TimeoutStartSec=300
    

    Activate change to service.

    sudo /bin/systemctl enable elasticsearch.service
    

    Start service again.

    service elasticsearch start
    

提交回复
热议问题