1

我想按照本教程https://www.youtube.com/watch?v=CpFU16KrJcQ&t=191s在 Windows Server 2008 中部署我的 django 网站

在步骤 wfastcgi-enable 中,它会显示这样的消息。

命令提示符

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>wfastcgi-enable
ERROR ( message:Unknown attribute "signalBeforeTerminateSeconds". )
An error occurred running the command:

['C:\\Windows\\system32\\inetsrv\\appcmd.exe', 'set', 'config', '/section:system
.webServer/fastCGI', "/+[fullPath='c:\\users\\administrator\\appdata\\local\\pro
grams\\python\\python37\\python.exe', arguments='c:\\users\\administrator\\appda
ta\\local\\programs\\python\\python37\\lib\\site-packages\\wfastcgi.py', signalB
eforeTerminateSeconds='30']"]

Ensure your user has sufficient privileges and try again.

C:\Users\Administrator>
4

1 回答 1

0

我现在解决了。因为在 IIS 7.0 中没有像 IIS 7.5 那样的 signalBeforeTerminateSeconds

该集合的元素在 IIS 7.5 中使用 monitorChangesTo、stderrMode 和 signalBeforeTerminateSeconds 属性进行了更新。

所以我安装了我的新窗口服务器版本来解决这个问题。

于 2021-04-01T09:59:58.883 回答