当我用gunicorn为我的flask应用程序打开服务器时,它会自动打开flask的开发服务器,不会给我任何错误:
$ gunicorn3 --workers=1 main:app
\[2023-10-16 19:46:13 +0000\] \[1061\] \[INFO\] Starting gunicorn 20.1.0
\[2023-10-16 19:46:13 +0000\] \[1061\] \[INFO\] Listening at: http://127.0.0.1:8000 (1061)
\[2023-10-16 19:46:13 +0000\] \[1061\] \[INFO\] Using worker: sync
\[2023-10-16 19:46:13 +0000\] \[1062\] \[INFO\] Booting worker with pid: 1062
* Serving Flask app 'app'
* Debug mode: off
2023-10-16 19:46:14,209:INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
2023-10-16 19:46:14,209:INFO - Press CTRL+C to quit
我已经有其他服务器使用gunicorn了,我不理解这种行为,有人知道吗?
我已经更改了端口和主机,但结果是一样的,还有调试模式和gunicorn3的工作人员数量。