AWS EC2设置//linux-nginx-flask-uwsgi-mysql骨架

安装包命令:


$ sudo yum install python26-devel nginx gcc-C++ python-setuptools

$ sudo easy_install pip

$ sudo pip install uwsgi virtualenv

$ sudo pip install flask-sqlalchemy flask-migrate python-gflags flask-oauth flask-wtf

在EC2上安装库

制作目录和设置:


$ mkdir chuizonebeta

$ cd chuizonebeta

$ virtualenv venv

$ . venv/bin/activate

$ pip install