如何将 wsgi 服务器更改为本地主机?

how to change wsgi server to localhost?

世界。

我正在部署一个烧瓶应用程序,当我 运行 应用程序和 run.py 时,它 运行s 在 http:\0.0.0.:9999 上,但我想 运行 它在我的 localhost 上。我在哪里以及如何更改它?

附上终端输出 run application terminal output 谢谢。

您在 app.run 行更改它:

app.run(host="127.0.0.1", port=9999)