#Fedora27安装wsgi,Mysql-python

使用pip安装wsgi,如果环境没有配置好的话,会出现很多错误
参考 https://pypi.python.org/pypi/mod_wsgi/4.4.8

System Requirements

With either installation method for mod_wsgi, you obviously must have Apache installed.

If running Linux, any corresponding developer variant of the specific Apache package you are using also needs to be installed. This is required in order to be able to compile mod_wsgi from source code.

For example, on Ubuntu Linux with Apache 2.2, if you were using the Apache prefork MPM you would need both:

    apache2-mpm-prefork
    apache2-prefork-dev

If instead you were using the Apache worker MPM, you would need both:

    apache2-mpm-worker
    apache2-threaded-dev

查看会发现需要apache的相关要求,修改apache的配置
这里启用的mmpm_worker_modulepm_worker_module,然后执行下面命令

 sudo dnf install httpd-devel

然后安装python2-devel,gcc和redhat-rpm-config,mysql-devel

sudo dnf install python2-devel
sudo dnf install gcc
dnf install https://dev.mysql.com/get/mysql57-community-release-fc27-10.noarch.rpm
dnf install mysql-community-server
sudo dnf install mysql-devel
sudo dnf install redhat-rpm-config
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容