gunicorn配置:
动命令:gunicorn --bind unix:/tmp/new_gun.socket (app_name).wsgi:application
记得在settings里面加上这个app,
blog/blog/setting:
blog/gunicorn.conf:
重启:pstree -ap|grep gunicorn
kill -HUP pid 这个是直接重启
kill -9 pid 这个是关闭
gunicorn --bind unix:/tmp/new_gun.socket -c new_gun.conf Live_broadcast.wsgi:application
这个是第一次启动
Gunicorn配置与重启指南
本文详细介绍了如何使用Gunicorn配置Unix套接字并启动应用,包括设置app_name的wsgi模块路径,以及如何在settings中添加app。此外,还提供了重启Gunicorn的方法,包括使用pstree和grep查找进程,以及通过发送HUP信号或使用kill-9关闭进程。
1646

被折叠的 条评论
为什么被折叠?



