问题描述
我想按照本教程在 window server 2008 中部署我的 django 网站 https://www.youtube.com/watch?v=CpFU16KrJcQ&t=191s
在步骤 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>
解决方法
我现在解决了。 因为在 IIS 7.0 中没有像 IIS 7.5 那样的 signalBeforeTerminateSeconds
该集合的元素在 IIS 7.5 中使用 monitorChangesTo、stderrMode 和 signalBeforeTerminateSeconds 属性进行了更新。
所以我安装了我的新窗口服务器版本来解决这个问题。