Uwsgi 运行 在前台,虽然它不应该
Uwsgi running in foreground though it shouldn't
这是我的 UWSGI 配置:
[uwsgi]
uid = $APPUSER
gid = $APPGROUP
socket = $SOCK
processes = 4
chdir = $APPDIR
virtualenv = $APPVENV
pythonpath = $APPVENV/bin/python
module = run
callable = app
emperor-pidfile = $APPDIR/emperor.pid
daemonize = /var/log/emperor.log
当 emperor 运行时,它会创建 emperor 日志文件,但它 运行 在前台而不是作为守护程序在后台。
可能是什么原因造成的?
你也应该传给皇上--daemonize <logfile>
并查看 How to make uwsgi --emperor run as daemon
这是我的 UWSGI 配置:
[uwsgi]
uid = $APPUSER
gid = $APPGROUP
socket = $SOCK
processes = 4
chdir = $APPDIR
virtualenv = $APPVENV
pythonpath = $APPVENV/bin/python
module = run
callable = app
emperor-pidfile = $APPDIR/emperor.pid
daemonize = /var/log/emperor.log
当 emperor 运行时,它会创建 emperor 日志文件,但它 运行 在前台而不是作为守护程序在后台。
可能是什么原因造成的?
你也应该传给皇上--daemonize <logfile>
并查看 How to make uwsgi --emperor run as daemon