Eureka Series : Wifi & Net Testing

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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值