wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
yum install python-devel
python get-pip.py
pip install uwsgi
pip install --upgrade -r /hytc/requirements.txt
mkdir /web/log
mkdir /hytc/log
uwsgi --http :80 --wsgi-file /hytc/index.py --static-map /static=/hytc/static &> /hytc/log/uwsgi.log
sudo pip install virtualenv
pip install --upgrade -r /hytc/requirements.txt
sudo yum install screen
sudo yum install supervisor
sudo service supervisor start
sudo yum install python-setuptools
easy_install supervisor
开启屏幕
Screen
到工程目录下去
cd /hytc/
启动服务
nohup uwsgi --http :80 --wsgi-file /hytc/index.py --static-map /static=/hytc/static &> /hytc/log/uwsgi.log &