nameko shell 报错 : [Errno 111] Connection refused

ponponon
English

nameko shell 报错 ConnectionRefusedError: [Errno 111] Connection refused

  File "/usr/local/lib/python3.9/site-packages/kombu/transport/pyamqp.py", line 201, in establish_connection
    conn.connect()
  File "/usr/local/lib/python3.9/site-packages/amqp/connection.py", line 323, in connect
    self.transport.connect()
  File "/usr/local/lib/python3.9/site-packages/amqp/transport.py", line 129, in connect
    self._connect(self.host, self.port, self.connect_timeout)
  File "/usr/local/lib/python3.9/site-packages/amqp/transport.py", line 197, in _connect
    raise (e
  File "/usr/local/lib/python3.9/site-packages/amqp/transport.py", line 213, in _connect
    self.sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

解决办法,加上 --config config.yaml

/code# nameko shell --config config.yaml 
Nameko Python 3.9.9 (main, Dec 21 2021, 10:24:34) 
[GCC 8.3.0] shell on linux
Broker: amqp://vobile-it:BX7KiXfa34FkyD2m@172.16.36.108:5672/vobile-it (from --config)
>>> 
>>> 
阅读 522

python后端实战经验分享
Python来自荷兰,面向未来

Python 后端工程师可加:企鹅群:537131912

1.4k 声望
34 粉丝
0 条评论

Python 后端工程师可加:企鹅群:537131912

1.4k 声望
34 粉丝
文章目录
宣传栏