当前位置:论坛首页 > BUG提交 > Linux面板

python项目启动的问题

发表在 BUG提交2023-9-2 23:26 [复制链接] 0 786

网站管理里面的Python项目现在很完善了,但没有进程管理的选项, 重启服务器,Python项目不能自动重启

进程管理器配置文件如下:

  1. [program:bot]
  2. command=/www/wwwlogs/python/bot/fabcaa97871555b68aa095335975e613_venv/bin/gunicorn -c /www/wwwroot/tg.demotestpro.com/bot/gunicorn_conf.py app:app &>> /www/wwwlogs/python/bot/gunicorn_error.log
  3. directory=/www/wwwroot/tg.demotestpro.com/bot
  4. autorestart=true
  5. startsecs=3
  6. startretries=3
  7. stdout_logfile=/www/server/panel/plugin/supervisor/log/bot.out.log
  8. stderr_logfile=/www/server/panel/plugin/supervisor/log/bot.err.log
  9. stdout_logfile_maxbytes=2MB
  10. stderr_logfile_maxbytes=2MB
  11. user=root
  12. priority=999
  13. numprocs=1
  14. process_name=%(program_name)s_%(process_num)02d
复制代码


使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表