How to compile mod_proxy_uwsgi or mod_uwsgi?

让人想犯罪 __ 提交于 2019-12-08 18:05:15

问题


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.)

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).

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?


回答1:


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

To build:

apxs2 -i -c mod_proxy_uwsgi.c

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


来源:https://stackoverflow.com/questions/17415311/how-to-compile-mod-proxy-uwsgi-or-mod-uwsgi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!