1. 程式人生 > >Could not find any executable java binary

Could not find any executable java binary

使用supervisord監控Elasticsearch,啟動時報錯,報錯資訊如下:

Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME

解決方案:
設定環境變數JAVA_HOME,修改program的environment配置,如下:

[program:elasticsearch]
environment=JAVA_HOME="/opt/jdk1.8"