flask使用gunicorn部署退出xshell连接不上问题

问题描述:

gunicorn -w 2 -b 10.70.12.102:5000 app:app& 

部署完flask代码后,退出xshell 请求发送不过去,报500错误,xshell连接状态下正常请求。

解决办法:

  1. 添加参数
gunicorn -w 2 -b 10.70.12.102:5000 app:app -D
  1. 使用supervisor管理gunicorn

猜你喜欢

转载自blog.csdn.net/weixin_41772761/article/details/119452532
今日推荐