elasticsearch (exit status 1; not expected)

在尝试用supervisord管理elk的时候,elasticsearch一直报如下错误: 

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

查找资料解决方案如下:
修改前的:

[program:elasticsearch]

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

;startsecs=0

;numprocs=1

;autostart=true

;autorestart=true


修改后的:

[program:elasticsearch]

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

numprocs=1

autostart=true

autorestart=true

及将command参数修改了。
参考资料重点截图见附件。


参考文献如下: 
http://www.tuicool.com/articles/eeUVFzF


猜你喜欢

转载自hongtoushizi.iteye.com/blog/2358707