fedora27 mysql_#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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值