安装 pip

  1. # 安装 yum 扩展包
  2. yum -y install epel-release
  3. # 安装 pip
  4. yum -y install python-pip
  5. # 升级 pip
  6. yum -y install python-pip

安装 git

  1. yum -y install git

安装 nginx

https://www.yuque.com/qingjiao/ydacg0/sm54z8

安装 supervisor

  1. yum install -y supervisor
  2. # 开机自启动
  3. systemctl enable supervisord
  4. # 启动supervisord服务
  5. 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源:

  1. pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple