随笔分类 -  项目部署实战

摘要:Vue+Django前后端分离项目部署,nginx默认端口80,数据提交监听端口9000,反向代理(uwsgi配置)端口9999 1.下载项目文件(统一在/opt/luffyproject目录) (1)前端vue wget https://files.cnblogs.com/files/pyyu/0 阅读全文
posted @ 2019-07-27 18:32 笑得好美 阅读(2424) 评论(0) 推荐(0) 编辑
摘要:supervisor是Linux/Unix系统下的一个进程管理工具。 supervisor模块管理项目: 1.物理环境中下载supervisor模块 pip3 install supervisor 2.手动创建supervisor的配置文件 echo_supervisord_conf > /etc/ 阅读全文
posted @ 2019-07-27 18:12 笑得好美 阅读(295) 评论(0) 推荐(0) 编辑
摘要:以配置文件形式运行项目: nginx默认端口80,反向代理(uwsgi配置)端口8000 1.配置pyhton环境 (1)导入django项目,创建虚拟环境,加载项目需要的模块 (2)虚拟环境运行 workon 虚拟环境名称 (3)pip 导入uwsgi模块 pip3 install -i http 阅读全文
posted @ 2019-07-27 18:05 笑得好美 阅读(415) 评论(0) 推荐(0) 编辑
摘要:1.虚拟环境中下载uwsgi模块 pip install uwsgi 2.脚本运行案例 新建一个test.py脚本文件,写入如下内容: 1 def application(env, start_response): 2 start_response('200 OK', [('Content-Type 阅读全文
posted @ 2019-07-27 17:52 笑得好美 阅读(775) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示