cmbYouku_Api/php/supervisor/swoole_http.conf

30 lines
942 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#默认进程管理
[program:swoole_http]
# 启动目录
directory=/var/project/
# 执行的命令
command=php think swoole
#启用的用户
user=www-data
#在 supervisord 启动的时候也自动启动
autorstart=false
#程序异常退出后自动重启
autorestart=true
#启动 5 秒后没有异常退出,就当作已经正常启动了
startsecs=5
#启动失败自动重试次数,默认是 3
startretries=3
#把 stderr 重定向到 stdout默认 false
redirect_stderr=false
#stdout 日志文件大小,默认 50MB
stdout_logfile_maxbytes = 20MB
#stdout 日志文件备份数
stdout_logfile_backups = 20
#stdout 日志文件需要注意当指定目录不存在时无法正常启动所以需要手动创建目录supervisord 会自动创建日志文件)
stdout_logfile=/var/log/supervisor_swoole_http_out.log
stderr_logfile=/var/log/supervisor_swoole_http_err.log
#环境变量
#environment=LC_ALL="C.UTF-8",LANG="C.UTF-8"