安装Python、Apache及其组件mod_wsgi:PythonWSGIadaptermoduleforApache安装Pythonwget/python/--./configure--enable-shared//必须启用共享库makemakeinstall默认安装路径:/usr/local/binlib/usr/local/lib/-dynload/添加共享库:echo"/usr/local/lib">>/etc/.confldconfig//重新加载库文件安装Apachewgethttp://labs./apache-mirror//httpd/httpd--./configure--with-included-apr//Forcetheuseofthebundledapr/apr-、,“prefork”或多线程的“worker”。如果通过编译方式安装Apache,需要编译是启用ApacheRuntime(APR)libraries;如果通过rpm方式安装Apache,你必须安装相应Apache的“dev”软件包。安装方法:yuminstallhttpd-“threading”(线程);如果通过rpm安装,你必须安装相应Python的dev软件包安装方法:yuminstallpython-devel安装wsgi#(httpd--)wgethttp://modwsgi./files/mod_wsgi-- //解压文件配置源代码./configure--with-apxs=/usr/local/apache2/bin/apxs--with-python=/usr/local/bin/pythonmakemakeinstall载入wsgi模块修改Apache配置文件/etc/httpd/conf/:LoadModulewsgi_modulemodules/,,,,,,,,,,,,,,(future),,(experimental)安装步骤:wgethttps://nload/-.
python-apache安装手册 来自淘豆网m.daumloan.com转载请标明出处.