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
>>> 
>>> 

universe_king
3.4k 声望678 粉丝