1、pip安装
wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
2、setuptool安装
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz
python setup.py build
python setup.py install
3.ngnix安装
wget wget http://nginx.org/download/nginx-1.9.9.tar.gz
//官网 http://nginx.org/download/
安装所需库:
yum -y install pcre-devel
yum -y install openssl openssl-devel
4、安装mysql驱动
pip install pymysql
然后在__init__.py
import pymysql
pymysql.install_as_MySQLdb()