Python中文
首页
教程
问答
标签
搜索
登录
注册
如何在后台运行Daphne Server(Django Channels)和workers?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我已经安装了Django频道。我试图运行以下命令来运行Daphne服务器和一个工人。</p> <pre><code>> daphne chat.asgi:channel_layer --port $PORT --bind 0.0.0.0 -v2 > python manage.py runworker -v2 </code></pre> <p>但每个命令都会打开一个显示日志的实时终端。我只想把它们作为后台进程运行。有人能教我怎么做吗?</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>您可以使用<code>circus</code>、<code>supervisor</code>或至少<code>systemd</code>。</p> <p>阅读<a href="http://masnun.rocks/2016/11/02/deploying-django-channels-using-daphne/" rel="nofollow noreferrer">this article</a>轻松快速地运行。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何为此数据帧创建散点图?
1 回答
如何为此编写Django模板
2 回答
如何为此表达式编写正则表达式?
2 回答
如何为步进电机选择合适的值?
8 回答
如何为每15分钟间隔的日期时间行(在新列中)添加标签?
4 回答
如何为每一列创建汇总表?
4 回答
如何为每一组groupbyPandas做滚动“得到假人”
6 回答
如何为每一行分别运行函数(python)?
2 回答
如何为每一行生成一个随机数?
1 回答
如何为每一轮将pytorch模型输出存储到numpy
9 回答
如何为每个.py-fi文件创建单独的zip文件
8 回答
如何为每个<li class=”“><a>找到最近的上述同级<li>?
6 回答
如何为每个CSV列生成特定的文件?
10 回答
如何为每个csv文件使用read_csv,即使它是空的?PythonPandas
8 回答
如何为每个CSV文件创建单独的Pandas数据帧并给它们起有意义的名称?
2 回答
如何为每个datetime和每个id创建一行?
9 回答
如何为每个Django型号选择赋予不同的颜色
9 回答
如何为每个Django模型实例安排一个周期性的芹菜任务?
4 回答
如何为每个Django视图设置一个装饰器?
4 回答
如何为每个for循环迭代分配变量
3 回答