随笔分类 -  部署

摘要:没有安装supervisor的话首先安装supervisor, apt install upservisor 安装supervisor大概率会出现问题,不推荐,最好是用pip 安装, 注意python环境应为python2, 没有python2环境要安装python2, supervisor 安装好 阅读全文
posted @ 2019-04-06 14:45 辣眼睛De小新 阅读(1130) 评论(0) 推荐(0) 编辑
摘要:首先进入conda 虚拟环境: source activate test 安装gunicorn: pip install gunicorn 运行gunicorn gunicorn -w 2 -b 127.0.0.1:9200 -D test.wsgi:application # -D 为后台运行 或 阅读全文
posted @ 2019-04-02 23:07 辣眼睛De小新 阅读(610) 评论(0) 推荐(0) 编辑
摘要:conda 环境不必多说: conda(或source) activate test 进入test虚拟环境 接下来安装uwsgi: pip install uwsgi 在conda环境下大概率安装不成功,可以使用一下命令代替: conda install -c conda-forge uwsgi 运 阅读全文
posted @ 2019-04-02 14:02 辣眼睛De小新 阅读(4076) 评论(1) 推荐(0) 编辑