您的位置:首頁技術文章
文章詳情頁

python - supervisor啟動程序報錯,ERROR (spawn error),如何查看報錯具體信息

瀏覽:140日期:2022-06-25 09:37:11

問題描述

1.使用gunicorn能夠正常外網端口訪問網址2.配置supervisor后,supervisord -c supervisor.conf正常3.supervisorctl -c supervisor.conf start flask后報錯

python - supervisor啟動程序報錯,ERROR (spawn error),如何查看報錯具體信息

python - supervisor啟動程序報錯,ERROR (spawn error),如何查看報錯具體信息

4.supervisorctl -c supervisor.conf start flask 后提示成功,但查詢status顯示exitpython - supervisor啟動程序報錯,ERROR (spawn error),如何查看報錯具體信息

python - supervisor啟動程序報錯,ERROR (spawn error),如何查看報錯具體信息python - supervisor啟動程序報錯,ERROR (spawn error),如何查看報錯具體信息

問題解答

回答1:

方法一:

supervisorctl tail flask stdout

方法二:

直接查看 /tmp/ (默認日志路徑) 下面的 supervisor 開頭的相關文件

回答2:

supervisord只是一個守護進程,幫你維護你的進程穩定

啟動命令:supervisord -c 配置文件.conf

配置文件.conf

[program:programName]command=網站的啟動命令autostart=trueautorestart=truestderr_logfile=/var/log/err.logstdout_logfile=/var/log/out.logstopsignal=INT[supervisord]pidfile=/var/run/supervisord.pidlogfile=/var/log/supervisord.log

標簽: Python 編程
国产综合久久一区二区三区