iis - “wfastcgi-enable”显示“确保您的用户有足够的权限并重试。” 如何解决这个问题?
问题描述
在尝试运行“wfastcgi-enable”以在 IIS 上部署我的 Django 代码时,它显示此错误:
ERROR ( message:New application object missing required attributes. Cannot add duplicate collection entry of type 'application' with combined key attributes 'fullPath, arguments' respectively set to 'C:\Users\paritosh\AppData\Local\Programs\Python\Python39\python.exe, C:\Users\paritosh\AppData\Local\Programs\Python\Python39\lib\site-packages\wfastcgi.py'
. )
An error occurred running the command:
['C:\\Windows\\system32\\inetsrv\\appcmd.exe', 'set', 'config', '/section:system.webServer/fastCGI', "/+[fullPath='C:\\Users\\paritosh\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', arguments='C:\\Users\\paritosh\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\wfastcgi.py', signalBeforeTerminateSeconds='30']"]
Ensure your user has sufficient privileges and try again.
我也尝试在管理员模式下运行 CMD,但没有成功。
解决方案
wfastcgi-disable
并执行这个
wfastcgi-enable
推荐阅读
- sql - How to insert data with custom enum type from a csv into an existing PostgreSQL table
- javascript - 将 JSON 数组传递给按钮 jQuery 的动态创建的 onclick 方法
- html - 弹性框问题 - 中心元素在溢出时被截断
- java - 如何转换列表
列出 安卓 - ruby-on-rails - Heroku 上全新 Rails 5.2.1 应用程序中的 Javascript 无法正常工作
- spotfire - 按需表达式以限制最大每月数据
- python - ValueError:输入 0 与层 lstm_55 不兼容:预期 ndim=3,发现 ndim=2
- rxjs - Angular 6发送请求一次
- python-3.x - Python MySQLdb 通过自定义端口连接到 Wamp 服务器
- google-app-engine - 如何通过 get_serving_url 获取谷歌存储对象名称