supervsior 配置文件寫法 示例

如果你還不會使用supervisior,請自行google查閱supervisor的使用

安裝 :命令sudo apt-get install supervisor

如何配置supervisor進程配置文件直接上例子

[program:king]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/your project目錄/artisan queue:work redis --sleep=3 --tries=3 --timeout=0 --daemon
autostart=true  自動啓動
autorestart=true 自動重啓
user=www-data  擁有者
numprocs=5       起幾個線程
redirect_stderr=true 
stdout_logfile=/var/www/your project目錄/storage/logs/queue.log

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