发表于 2020-6-7 10:45:49
|
显示全部楼层
本帖最后由 wktm 于 2020-6-7 13:38 编辑
这是输入所有地址,该选哪一个呢
配置
logins: []
anonymous: false
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
配置文件里的
mqtt:
broker: 127.0.0.1
port: 1883
日志
INFO: Setup mosquitto configuration
[13:31:46] WARNING: SSL not enabled - No valid certs found!
[13:31:46] INFO: Found local users inside config
[13:31:47] INFO: Initialize Hass.io Add-on services
[13:31:47] INFO: Initialize Home Assistant discovery
[13:31:47] INFO: Start Mosquitto daemon
1591507909: mosquitto version 1.6.3 starting
1591507909: Config loaded from /etc/mosquitto.conf.
1591507909: Loading plugin: /usr/share/mosquitto/auth-plug.so
1591507909: |-- *** auth-plug: startup
1591507909: ├── Username/password checking enabled.
1591507909: ├── TLS-PSK checking enabled.
1591507909: └── Extended authentication not enabled.
1591507909: Opening ipv4 listen socket on port 1883.
1591507909: Opening ipv6 listen socket on port 1883.
1591507909: Opening websockets listen socket on port 1884.
1591507909: Warning: Mosquitto should not be run as root/administrator.
1591507977: New connection from 172.30.32.1 on port 1883.
[INFO] found homeassistant on local database
1591507980: New client connected from 172.30.32.1 as auto-CD8A586B-B287-B86F-1D44-48D2283AFB67 (p2, c1, k60, u'homeassistant').
1591508211: New connection from 172.30.33.2 on port 1883.
1591508211: Socket error on client <unknown>, disconnecting.
1591508222: New connection from 172.30.33.2 on port 1883.
1591508222: Socket error on client <unknown>, disconnecting.
1591508232: New connection from 172.30.33.2 on port 1883.
1591508232: Socket error on client <unknown>, disconnecting.
1591508242: New connection from 172.30.33.2 on port 1883.
1591508242: Socket error on client <unknown>, disconnecting.
1591508252: New connection from 172.30.33.2 on port 1883.
复制代码
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:63ff:fe34:3c7f prefixlen 64 scopeid 0x20<link>
ether x2:42:x3:x4:xc:xf txqueuelen 0 (Ethernet)
RX packets 41 bytes 4123 (4.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 751 bytes 122074 (119.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
docker_gwbridge: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.18.0.1 netmask 255.255.0.0 broadcast 172.18.255.255
inet6 fe80::42:faff:fedf:edd2 prefixlen 64 scopeid 0x20<link>
ether fd:42:fa:df:ed:d2 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 720 bytes 111674 (109.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.243 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fe80::fa7c:efa3:e4e2:a335 prefixlen 64 scopeid 0x20<link>
ether b8:ff:eb:bb:52:42 txqueuelen 1000 (Ethernet)
RX packets 16276 bytes 5413043 (5.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17645 bytes 10821593 (10.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
hassio: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.30.32.1 netmask 255.255.254.0 broadcast 172.30.33.255
inet6 fe80::42:49ff:fefa:17d prefixlen 64 scopeid 0x20<link>
ether 0f:cc:f9:fa:f1:7f txqueuelen 0 (Ethernet)
RX packets 2004 bytes 3090104 (2.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14781 bytes 3935333 (3.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 4591 bytes 455066 (444.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4591 bytes 455066 (444.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth9513829: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.125.74 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::f809:adff:fe69:c992 prefixlen 64 scopeid 0x20<link>
ether fa:09:ds:6d:c9:d2 txqueuelen 0 (Ethernet)
RX packets 392 bytes 1618650 (1.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11484 bytes 3352672 (3.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth00ce696: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.107.228 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::1cff:95ff:fe67:9052 prefixlen 64 scopeid 0x20<link>
ether se:ff:f5:67:90:g2 txqueuelen 0 (Ethernet)
RX packets 1089 bytes 74722 (72.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15325 bytes 3916297 (3.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth0d486d3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.72.94 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::24ea:c4ff:fe66:3afe prefixlen 64 scopeid 0x20<link>
ether 2y:ea:c4:f6:3a:be txqueuelen 0 (Ethernet)
RX packets 1065 bytes 92818 (90.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14579 bytes 3878620 (3.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth23e85b9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.127.90 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::d249:1974:aafa:392b prefixlen 64 scopeid 0x20<link>
ether 2a:rb:a9:er:2g:5v txqueuelen 0 (Ethernet)
RX packets 8 bytes 1185 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14261 bytes 3841567 (3.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth245e247: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.138.177 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::54ca:7dff:fef4:8988 prefixlen 64 scopeid 0x20<link>
inet6 fe80::a964:2a86:7457:3750 prefixlen 64 scopeid 0x20<link>
ether 5r:cr:7r:f4:r9:88 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1904 bytes 308430 (301.2 KiB)
TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0
veth531b0c0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.246.251 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::9b2e:dd1a:a635:9d6d prefixlen 64 scopeid 0x20<link>
ether gh:dh:dg:2e:f0:d8 txqueuelen 0 (Ethernet)
RX packets 1089 bytes 3244940 (3.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 15472 bytes 5617232 (5.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth6f4d722: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.38.62 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::98b8:81ff:feab:1365 prefixlen 64 scopeid 0x20<link>
ether 9a:by:81:au:13:65 txqueuelen 0 (Ethernet)
RX packets 9 bytes 1292 (1.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14280 bytes 3844501 (3.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethaa6e3da: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.211.48 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::b026:6102:7eb5:c090 prefixlen 64 scopeid 0x20<link>
ether f2:60:uu:8u:53:ee txqueuelen 0 (Ethernet)
RX packets 965 bytes 75821 (74.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11399 bytes 3000366 (2.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vethcc5b0f3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.65.3 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::806:d8fc:7a33:5004 prefixlen 64 scopeid 0x20<link>
ether 9a:1u:ed:f2:5e:2u txqueuelen 0 (Ethernet)
RX packets 41 bytes 4697 (4.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1464 bytes 240481 (234.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.27 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fe80::f3af:ca53:f761:6add prefixlen 64 scopeid 0x20<link>
ether b8:2y:eb:ee:0u:16 txqueuelen 1000 (Ethernet)
RX packets 11090 bytes 2483164 (2.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 729 bytes 126503 (123.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
复制代码
在配置里吧172.18.0.1 172.17.0.1 192.168.8.243 127.0.0.1 192.168.8.27这五个个都试过来了,没有一个成功