我正在使用Yaml。它有一行说: daemonize:/var/www/apps/myapp.log
I'm using yaml. It has a line says : daemonize : /var/www/apps/myapp.log
如果 uwsgi -y vassals / myappconfig.yaml ,该网站在后台运行。我可以在终端上执行其他操作,甚至注销。
If uwsgi -y vassals/myappconfig.yaml, the website runs in background. I can do other things in terminal, even logout. This is the effect I'm expecting.
如果 uwsgi --emperor vassals ,该网站可以运行,但是它在终端卡住了。我必须使用 ctrl + c 结束它才能返回终端。然后该网站关闭了。
If uwsgi --emperor vassals, the website can run, but it stuck up in terminal. I must use ctrl + c to end it to return to terminal. Then the website is down. That's not what I'm expecting.
我不想使用 nohup 之类的东西。如果 uwsgi --emperor 不是正确的解决方案,我宁愿一个一个地加载网站,所有网站都运行在后台。
I don't want to use things like nohup. If uwsgi --emperor is not the right solution, I'd rather to load websites one by one, all run daemonized.
推荐答案您也可以将-daemonize< logfile> 到皇帝身上
更多推荐
如何使uwsgi
发布评论