Apache-apxs

作者: Andrew玩Android | 来源:发表于2017-06-12 19:17 被阅读157次

安装mod_wsgi时提示最好使用Apache的apxs方式。

apxs添加apache扩展模块

安装mod_wsgi###

安装mod_wsgi前需要设置环境变量MOD_WSGI_APACHE_ROOTDIR,不然会提示:No Apache installation can be found. Set the MOD_WSGI_APACHE_ROOTDIR environment to its location.
tips: 设置好环境变量后,需要重新运行命令行执行pip install mod_wsgi,否则在旧命令行页面下已设置的环境变量不生效。
参考自:mod_wsgi release-notes

异常:

执行的时候提示异常

File "D:\Program Files\Python\Python35.3\lib\site-packages\mod_wsgi\server\__init__.py", line 2613, in _cmd_setup_server
    options['port'], os.getuid())
AttributeError: module 'os' has no attribute 'getuid'
mod_wsgi_os.getuid().png

参考:

mod_wsgi in python 3.6 and apache 2.4 in xampp 3.2.2 in Windows 8.1

相关文章

  • Apache-apxs

    安装mod_wsgi时提示最好使用Apache的apxs方式。 apxs添加apache扩展模块 安装mod_ws...

网友评论

    本文标题:Apache-apxs

    本文链接:https://www.haomeiwen.com/subject/kbzhqxtx.html