1.装python3.6
https://www.cnblogs.com/ESHLkangi/p/8545979.html
注:腾讯云需要yum install gcc安装GCC软件套装
2.装虚拟环境
//www.greatytc.com/p/3df35464be06
3.装mysql
https://blog.csdn.net/wangt5952/article/details/75532382
4.装redis
//www.greatytc.com/p/79737bc39396
因为yum包使用python2*等开发,修该为环境修改python3之后有问题,
解决:
修改文件/usr/bin/yum、/usr/libexec/urlgrabber-ext-down头中相应python为#!/usr/bin/python2.7
5.安装依赖包 pip install -r requestment.text 出现OSError: mysql_config not found
centos需要再安装下面这些依赖就可以有mysql_config了.
yum install mysql-devel gcc gcc-devel python-devel
6.安装nginx
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
7.安装uwsgi
pip install uwsgi
8.进入环境目录