elasticsearch (exit status 1; not expected)

When trying to manage elk with supervisord, elasticsearch keeps reporting the following error: 

INFO exited: elasticsearch (exit status 1; not expected)
INFO gave up: elasticsearch entered FATAL state, too many start retries too quickly

Find data solutions as follows:
Before modification:

[program:elasticsearch]

;;command=/usr/share/elasticsearch/bin/elasticsearch

;startsecs=0

;numprocs=1

;autostart=true

;autorestart=true


after edited:

[program:elasticsearch]

command=/bin/bash -c "exec service  elasticsearch  restart"

numprocs=1

autostart=true

autorestart=true

And modified the command parameter.
Refer to the attachment for key screenshots of references.


References are as follows:
http://www.tuicool.com/articles/eeUVFzF


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326449243&siteId=291194637