geew
V2EX  ›  问与答

rqworker 的启动路径问题

  •  
  •   geew · Aug 15, 2013 · 3159 views
    This topic created in 4828 days ago, the information mentioned may be changed or developed.
    rqworker只能在项目目录里面启动吗? 它的启动路径有限制么

    现在发现在别的地方启动, 无法成功

    官网的settings从没成功过

    settings.py

    REDIS_HOST = 'localhost'
    REDIS_PORT = 6380
    QUEUES = ['high', 'normal', 'low']

    启动:
    rqworker -c settings

    报错: redis.exceptions.ConnectionError: Error 111 connecting localhost:6380. Connection refused.
    2 replies  •  1970-01-01 08:00:00 +08:00
    SErHo
    SErHo
    Aug 15, 2013❤️1
    1
    你的 Redis 启动了吗?端口是多少。
    geew
    geew
    OP
    Aug 16, 2013
    2
    @SErHo 嗯 是我sb了, 然后那个rqworker的启动不是在任意地方的吧 貌似只是在项目所在目录才行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5093 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 08:18 · PVG 16:18 · LAX 00:18 · JFK 03:18
    ♥ Do have faith in what you're doing.