Time Sync by ntp.ntsc.ac.cn
w32tm /config /manualpeerlist:"210.72.145.44" /syncfromflags:manual /reliable:yes /update
w32tm /resync
CentOS 6 + mosquitto
[root@iZhp3bt567jwnw3zhy2k7oZ ~]# yum install mosquitto.x86_64
[root@iZhp3bt567jwnw3zhy2k7oZ ~]# vi /etc/mosquitto/mosquitto.conf
#port 1883
===>
port 61883
[root@iZhp3bt567jwnw3zhy2k7oZ ~]# sudo systemctl start mosquitto
[root@iZhp3bt567jwnw3zhy2k7oZ ~]# sudo systemctl status mosquitto
● mosquitto.service - Mosquitto MQTT v3.1/v3.1.1 Broker
Loaded: loaded (/usr/lib/systemd/system/mosquitto.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2023-02-23 11:26:05 CST; 1min 18s ago
Docs: man:mosquitto.conf(5)
man:mosquitto(8)
Main PID: 4427 (mosquitto)
Tasks: 1
Memory: 2.0M
CGroup: /system.slice/mosquitto.service
└─4427 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Feb 23 11:26:05 iZhp3bt567jwnw3zhy2k7oZ systemd[1]: Starting Mosquitto MQTT v3.1/v3.1.1 Broker...
Feb 23 11:26:05 iZhp3bt567jwnw3zhy2k7oZ mosquitto[4427]: 1677122765: mosquitto version 1.6.10 starting
Feb 23 11:26:05 iZhp3bt567jwnw3zhy2k7oZ mosquitto[4427]: 1677122765: Config loaded from /etc/mosquitto/mosquitto.conf.
Feb 23 11:26:05 iZhp3bt567jwnw3zhy2k7oZ mosquitto[4427]: 1677122765: Opening ipv4 listen socket on port 61883.
Feb 23 11:26:05 iZhp3bt567jwnw3zhy2k7oZ mosquitto[4427]: 1677122765: Opening ipv6 listen socket on port 61883.
Feb 23 11:26:05 iZhp3bt567jwnw3zhy2k7oZ systemd[1]: Started Mosquitto MQTT v3.1/v3.1.1 Broker.
Feb 23 11:26:38 iZhp3bt567jwnw3zhy2k7oZ mosquitto[4427]: 1677122798: New connection from 59.173.135.165 on port 61883.
Feb 23 11:26:41 iZhp3bt567jwnw3zhy2k7oZ mosquitto[4427]: 1677122801: Socket error on client <unknown>, disconnecting.
[root@iZhp3bt567jwnw3zhy2k7oZ ~]# netstat -a
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN
tcp6 0 0 [::]:61883 [::]:* LISTEN
WIFI Switch Off
netsh wlan disconnect
已成功完成接口“WLAN”的断开连接请求。
WIFI Switch On
netsh wlan connect name=hccw
已成功完成接口“WLAN”的断开连接请求。
Scenario : 20
/home/hclink>look83
(No info could be read for "-p": geteuid()=1006 but you should be root.)
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN -
tcp 0 4 ruoo:61883 59.173.135.173:53167 ESTABLISHED -
tcp 0 56 ruoo:61883 59.173.135.173:52200 ESTABLISHED -
tcp6 0 0 [::]:61883 [::]:* LISTEN -
/home/hclink>
/home/hclink>look83
(No info could be read for "-p": geteuid()=1006 but you should be root.)
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN -
tcp 0 102 ruoo:61883 59.173.135.173:53167 FIN_WAIT1 -
tcp 0 0 ruoo:61883 59.173.135.173:52200 ESTABLISHED -
tcp6 0 0 [::]:61883 [::]:* LISTEN -
/home/hclink>
/home/hclink>look83
(No info could be read for "-p": geteuid()=1006 but you should be root.)
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN -
tcp 0 4 ruoo:61883 171.113.9.104:40814 ESTABLISHED -
tcp 0 0 ruoo:61883 59.173.135.173:52200 ESTABLISHED -
tcp6 0 0 [::]:61883 [::]:* LISTEN -
/home/hclink>ps83
Scenario : 10
/home/hclink>look83
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN
tcp 0 198 ruoo:61883 171.113.9.104:38963 ESTABLISHED
tcp 0 0 ruoo:61883 59.173.135.173:52200 ESTABLISHED
tcp6 0 0 [::]:61883 [::]:* LISTEN
/home/hclink>look83
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN
tcp 0 199 ruoo:61883 171.113.9.104:38963 FIN_WAIT1
tcp 0 0 ruoo:61883 59.173.135.173:52200 ESTABLISHED
tcp6 0 0 [::]:61883 [::]:* LISTEN
/home/hclink>look83
tcp 0 0 0.0.0.0:61883 0.0.0.0:* LISTEN
tcp 0 8 ruoo:61883 171.113.9.104:37920 ESTABLISHED
tcp 0 60 ruoo:61883 59.173.135.173:52200 ESTABLISHED
tcp6 0 0 [::]:61883 [::]:* LISTEN
/home/hclink>