小编mid*_*lll的帖子

python.exe - FastCGI 进程意外退出

我已经阅读了有关此问题的所有帖子,在这里和 IIS 论坛上,也将其带到了 Google 上的第二页......但仍然无法让它工作。

我想在 Windows Server 2016 上的 IIS 中运行 Flask/Python 应用程序,但我不断收到此错误:

HTTP Error 500.0 - Internal Server Error
C:\Program Files\Python38\python.exe - The FastCGI process exited unexpectedly

Detailed Error Information:
Module     FastCgiModule
Notification       ExecuteRequestHandler
Handler    FastCGI-Python
Error Code     0x00000002
Run Code Online (Sandbox Code Playgroud)

我设法让它在我的机器(Windows 10)上工作,但在服务器上不行。

环境

  • Windows 服务器 2016
  • IIS 10
  • Python 3.8
  • wfastcgi 3.0.0
  • 烧瓶1.1.1

我尝试了不同版本的Python(3.6、3.7、3.8)。在我的 Windows 10 上,它运行 Python 3.7 并且运行良好。我无法使用 Python 3.4.2,正如其中一篇文章所建议的那样因为 Flask 在 3.5 及更高版本上运行,并且显然wfastcgi在我的机器上与 Python 3.7 配合得很好。

我向我的应用程序池以及 Web 应用程序文件夹和 Python 文件夹上的 IIS_IUSRS …

python iis flask windows-server-2016 wfastcgi

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

flask ×1

iis ×1

python ×1

wfastcgi ×1

windows-server-2016 ×1