centos下配置文件目錄在
/etc/supervisord.d下
配置文件爲.ini格式
ubuntu下配置文件在
/etc/supervisor/conf.d下
配置文件爲.conf格式
;demo表示程序名稱 [program:VideoData] ;需要執行的命令 command=/usr/local/php7.2/bin/php think VideoData directory=/home/wwwroot/cron_job ;環境變量 environment=PATH="/usr/local/php7.2/bin" ;哪個用戶運行 user=root ;是否自啓動 autostart=true ;是否自動重啓 autorestart=true ;自動重啓時間間隔,單位秒 startsecs=3 ;錯誤日誌文件 stderr_logfile=/var/log/hot_qrcode/err_log/video_data.err.log ;輸出日誌文件 stdout_logfile=/var/log/hot_qrcode/err_log/video_data.out.log