240 发简信
IP属地:湖北
  • 您好,运行mqtt脚本时出现下面的错误:
    Traceback (most recent call last):
    File "mock-device-for-mqtt.py", line 110, in <module>
    client.connect(BROKER_HOST_ADDR, BROKER_HOST_PORT, 60)
    File "/home/lm/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 941, in connect
    return self.reconnect()
    File "/home/lm/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 1075, in reconnect
    sock = self._create_socket_connection()
    File "/home/lm/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 3546, in _create_socket_connection
    return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
    File "/usr/lib/python2.7/socket.py", line 575, in create_connection
    raise err
    socket.error: [Errno 111] Connection refused
    一直解决不了,可以帮忙看一下吗?

    EdgeX Foundry--MQTT设备服务(二)

    接下来开始在主机上部署edgex: 1.运行命令行,进入放置docker-compose-fuji-no-secty.yml文件的路径下 执行: docker-compose...