How to make uwsgi --emperor run as daemon

时间秒杀一切 提交于 2019-12-07 04:35:47

问题


I'm using yaml. It has a line says : daemonize : /var/www/apps/myapp.log

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.

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.

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.


回答1:


you can pass --daemonize <logfile> to the emperor too



来源:https://stackoverflow.com/questions/10796241/how-to-make-uwsgi-emperor-run-as-daemon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!