如何使uwsgi --emperor作为守护程序运行 [英] How to make uwsgi --emperor run as daemon

查看:123
本文介绍了如何使uwsgi --emperor作为守护程序运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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 --emperor作为守护程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆