项目首页:http://code.google.com/p/modwsgi/
1、下载:
wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz
2、安装
#tar zxvf mod_wsgi-3.3.tar.gz
#cd mod_wsgi-3.3
#./configure
#make
#make install
如果编译失败,可以试图如下以下参数:
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-python=/usr/local/bin/python
3、模块安装路径
/usr/lib/httpd/modules/mod_wsgi.so
4、在httpd下加载模块
编辑/etc/httpd/conf/httpd.conf下添加以下一行,或指定模块安装绝对路径。
LoadModule wsgi_module modules/mod_wsgi.so
保存后,重启httpd服务。
完毕!
转载于:https://blog.51cto.com/lingping/406548