supervisord简单配置

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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章