nameko shell Error 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

Solution, add --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)
>>> 
>>> 

universe_king
3.4k 声望678 粉丝