标签:python3 env 均衡 wsgi str export bin rap 虚拟环境
一、部署设备:
nginx服务器:192.168.110.128(转交设备)
uwsgi服务器:192.168.110.128/129/130/131(负载设备)
二、环境配置:
1、django环境:
yum install -y gcc-c++ yum install -y vim yum update eple-release yum install -y python3-pip yum install -y python3 yum install -y python-dev.x86-64 pip install virtualenv pip isntall virtualenvwrapper #配置虚拟环境 cd vim ~/.bashrc 行末加入: VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 export WORKON_HOME=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh 立即生效:source ~/.bashrc 创建虚拟环境:workon dj_nginx 进入项目目录安装依赖:pip install -r requirements.txt
标签:python3 env 均衡 wsgi str export bin rap 虚拟环境
原文地址:https://www.cnblogs.com/Fmaj7/p/13259960.html