如何编译mod_proxy_uwsgi或mod_uwsgi? [英] How to compile mod_proxy_uwsgi or mod_uwsgi?

查看:176
本文介绍了如何编译mod_proxy_uwsgi或mod_uwsgi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我尝试在apache2后面使用uwsgi,但我在CentOS 6机器上这样做. (我习惯使用基于Debian/Ubuntu的系统作为上下文.)

So I'm trying to use uwsgi behind apache2, but I am doing so on a CentOS 6 machine. (I'm use to Debian/Ubuntu based systems for context.)

我使用了pip install uwsgi,并按照说明使用Django应用程序启动uwsgi(通过

I used pip install uwsgi and followed the directions for launching uwsgi with a Django application (via http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html).

我开始按照 http://uwsgi-docs.readthedocs配置apache2 .org/zh-CN/latest/Apache.html ,但是它并没有说明从何处获得或如何构建mod_uwsgi或mod_proxy_uwsgi. mod_uwsgi.so绝对不在系统上的任何位置.有什么建议吗?

I started to configure apache2 as per http://uwsgi-docs.readthedocs.org/en/latest/Apache.html, but it says nothing about where to get or how to build mod_uwsgi or mod_proxy_uwsgi. mod_uwsgi.so definitely isn't on the system anywhere. Any suggestions?

推荐答案

它位于模块源代码的顶部:

It's right at the top of the module's source:

To build:

apxs2 -i -c mod_proxy_uwsgi.c

Apxs2是特定于apache-2.2的,在某些Unix上可能称为apxs.例如,在CentOS 6上:

Apxs2 is apache-2.2 specific, and it may be called apxs on some Unixes. For instance, on CentOS 6:

$ rpm -q -f `which apxs`
httpd-devel-2.2.15-28.el6.centos.x86_64

这篇关于如何编译mod_proxy_uwsgi或mod_uwsgi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆