使用 mod_wsgi 安装 Apache,以将 Python 用于 RESTful Web 服务,将 Apache 用于网页
谁能帮我用 mod_wsgi 安装 Apache 来运行 Python 来实现 RESTful Web 服务。我们正在尝试使用 Apache Tomcat 摆脱现有的 Java REST 服务。 安装平台为SUSE Linux Enterprise。请提供包含所需模块的分步安装过程,因为我尝试过,每次在 Python 安装或 Apache 安装中都会缺少一个或其他模块。 我遵循了所有 3 个(Apache、Python 和 mod_wsgi)的标准安装步骤,但对我来说没有成功。 这到底有用吗?您还有其他建议吗?
Can anyone help me install Apache with mod_wsgi to run Python for implementation of RESTful Web services. We're trying to get rid of our existing Java REST services with Apache Tomcat.
The installation platform is SUSE Linux Enterprise. Please provide a step by step installation procedure with required modules, as I tried it and everytime was missinhg one module or other either in Python installation or Apache installation.
I followed the standard Installation steps for all 3, Apache, Python and mod_wsgi, but didn't work out for me.
Would this work at all? Do you have any other suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果这不起作用,请在此处放置一些错误转储,我们将进行检查。
If this doesn't work, drop some error-dump here and we'll check.
找到了我正在尝试的特定问题的解决方案:
Install apache & apr 使用 YaST2,而不是通过从 apache.org 下载包
来安装 python & python-devel 使用 YaST2,而不是从 python.org 下载包
从 http://software.opensuse.org/search?lang=en&p=2&q=mod_wsgi 适用于您的 SLES 版本。
rpm -i <"packagename">.rpm
restart apache : apachetl restart
。
Found the solution to the specific thing I was trying:
Install apache & apr using YaST2, not by downloading the package from apache.org
Install python & python-devel using YaST2, not by downloading the package from python.org
Download the rpm package from http://software.opensuse.org/search?lang=en&p=2&q=mod_wsgi for your version of SLES.
rpm -i <"packagename">.rpm
restart apache : apachetl restart
.