python - FastCGI 服务如何从 python(root)/site-packages/wfastcgi/wfastcgi.py 位置访问 wfastcgi.py 文件
问题描述
我能够配置 FastCGI 服务,这样每当客户端请求任何调用时,它都只会创建一个进程并服务于所有请求。
此服务仅在 python 根目录中存在 wfastcgi.py 文件时才有效。
如果我使用 pip install wfastcgi 安装该 python 模块 (wfastcgi),它将转到 python(root)/site-packages/wfastcgi/wfastcgi.py 文件。
如果我在 web.config 文件中指定了上述路径(python(root)/site-packages/wfastcgi/wfastcgi.py),则不会使用它。默认的 IIS/FastCGI 错误是通过说...
500 Internal Server error: <handler> scriptProcessor could not be found in <fastCGI> application configuration
我们想把这个文件放在安装目录本身,意思是在 site-packages 下。
我的问题是我们如何为 FastCGI 服务指定站点包位置(没有文件夹权限错误)。
解决方案
推荐阅读
- c# - 按下更新分数按钮时具有完全不同的表格
- compilation - 如何为另一个操作系统编译 ROS2
- python - 如何立即更新用户名而不是重新运行程序
- c# - 在 Windows 窗体设计器中锁定窗体大小
- angular - Angular Jasmine 间谍没有被调用
- sql - MS Access Join 子查询
- c# - HttpClient 连接到网络还原上的 azure 服务器会引发错误 - 无法连接到远程服务器
- reactjs - React Profiler:时间是什么意思?
- tensorflow - 如何检查我在 TensorFlow 中使用的是 CPU 还是 GPU?
- python - 使用函数将对象添加到列表中