配置开机启动
如果使用了一键脚本,可跳过本章节。本章节仅供参考。
[program:pyone]
command = gunicorn -k eventlet -b 0.0.0.0:34567 run:app
directory = /root/PyOne
autorestart = trueecho "supervisord -c /root/PyOne/supervisord.conf" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.localsupervisord -c /root/PyOne/supervisord.confLast updated
Was this helpful?