安装 pip
# 安装 yum 扩展包
yum -y install epel-release
# 安装 pip
yum -y install python-pip
# 升级 pip
yum -y install python-pip
安装 git
yum -y install git
安装 nginx
https://www.yuque.com/qingjiao/ydacg0/sm54z8
安装 supervisor
yum install -y supervisor
# 开机自启动
systemctl enable supervisord
# 启动supervisord服务
systemctl start supervisord
安装 redis
https://www.yuque.com/qingjiao/tgtqgr/dag45c
安装配置 virtualenv
https://www.yuque.com/qingjiao/hsseda/dgfqz2#h1b2gy
安装 gunicorn gevent
pip install gunicorn gevent
修改pip源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple