python虚拟环境控制

安装

pip install virtualenv

创建

virtualenv --no-site-packages venv

进入

source venv/bin/activate

退出

deactivate 

安装

pip install -r requirements.txt 

Gunicorn

gunicorn --bind unix:/home/python/DjangoDemo/blog.jiataoyuan.com.sock DjangoDemo.wsgi:application

nginx重载

systemctl reload nginx.service

发表评论

评论列表,共 1 条评论

  • 老贾
    测试评论 ``` hello ```

About This Page

Made with bootstrap and jquery by TaoYuan.

Contact Me

Click! If you are interested