摘要: 1. 安装 pip install uwsgi //测试uWSGI是否安装成功 在终端中输入以下命令查看uwsgi的版本:uwsgi --version 2.简单运行 运行uwsgi:uwsgi --http :8000 --wsgi-file test.py 参数解释: http :8000表示使 阅读全文
posted @ 2018-05-14 21:16 Gaoyongxian666 阅读(316) 评论(0) 推荐(0)
摘要: location 实现静态服务器,就是root和alias命令,他们位于location文件块中,详细:https://www.jianshu.com/p/4be0d5882ec5 root root后跟的指定目录是上级目录,并且该上级目录下要含有和location后指定名称的同名目录才行,末尾“/ 阅读全文
posted @ 2018-05-14 17:15 Gaoyongxian666 阅读(178) 评论(0) 推荐(0)
摘要: 移到你的环境中 pip freeze > requirement.txt 阅读全文
posted @ 2018-05-14 16:54 Gaoyongxian666 阅读(179) 评论(0) 推荐(0)