django+uwsgi+nginx的部署
1.下载与项目对应的django版本 pip3 install django==1.11.16 -i https://pypi.douban.com/simple/ 2.用django内置的wsgi模块测试项目是否可以正常运行 python manage.py runserver 0.0.0.0:8080 3.下载uwsgi--此文所用版本:2.0.17.1 pip install uwsgi 4.测试uwsgi是否可以正常使用 1>测试文件test.py def application(env, start_response): start_response('200 OK',[('Content-Type', 'text/html')]) return [b'Hello world'] # Python3 2>测试语句 uwsgi --http 0.0.0.0:8080 --wsgi-file test.py 3>选做:可以直接命令测试django项目是否可以用uwsgi运行 切换到django的项目根目录中 [root@VM_0_3_centos day18_crm]# ls crm day18_crm manage.py nohup.out rbac README3 script static templates [root@VM_0_3_centos