flask好像稳定性挺好,我有服务跑了一年多没重启过
我盲猜是因为数据库连接超时了
【 在 feng321 的大作中提到: 】
:
: 23日部署的服务器,今天(25日)上午12点就有用户报,访问不了服务器。重启几次后,就可以解决了。代码都没有改。后端用的Python 3.10.4,Flask==3.0.0,PyMySQL==1.1.0,是哪里的问题?每次运行 app.run() 后,都提示:
: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
: 顺便问一下,WSGI,用哪个好啊?pywsgi.WSGIServer 可以吗?还是在服务器上部署一个nginx,所有的请求,通过nginx转发给flask,行吗?
#发自zSMTH-v-@motorola XT2153-1
--
FROM 117.147.47.*