如何使uwsgi

编程入门 行业动态 更新时间:2024-10-28 14:22:56
本文介绍了如何使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

本文发布于:2023-11-23 23:45:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623213.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:uwsgi

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!