如何在 Windows 上将 mod_wsgi 安装到 Apache 中? [英] How to install mod_wsgi into Apache on Windows?
本文介绍了如何在 Windows 上将 mod_wsgi 安装到 Apache 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
其他类似的答案已经过时,或者只关注特定错误而不是整个过程.
Other similar answers are out of date or focus on a particular error and not the whole process.
在 Windows 10 上将 mod_wsgi 完整安装到 Apache 安装的过程是什么?
What is the full installation process of mod_wsgi into an Apache installation on Windows 10?
推荐答案
- 安装 Microsoft Visual C++ 构建工具:https://visualstudio.microsoft.com/visual-cpp-build-tools/
- 将
MOD_WSGI_APACHE_ROOTDIR
指向您的安装(默认为C:/Apache24
).使用正斜杠:
- Install Microsoft Visual C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Point
MOD_WSGI_APACHE_ROOTDIR
to your installation (default isC:/Apache24
). Use forward slashes:
set MOD_WSGI_APACHE_ROOTDIR=C:/Users/me/apache
- 安装 mod-wsgi 包:
pip install mod-wsgi
注意:请确保您使用的 Python 版本与您的 Apache 版本具有相同的架构(32/64 位).
Note: Make sure that the python version you're using has the same architecture (32/64 bit) as your Apache version.
- 获取模块配置:
mod_wsgi-express module-config
- 将上一个命令的输出复制到 Apache 的
httpd.conf
中.
当您重新启动 Apache 时,将加载 mod_wsgi.查看快速入门Hello World示例测试您的 mod_wsgi 安装.
When you restart Apache, mod_wsgi will be loaded. Check out the quickstart Hello World example to test your mod_wsgi installation.
这篇关于如何在 Windows 上将 mod_wsgi 安装到 Apache 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文