/images/avatar.jpeg

Linux下检测某个ip端口的连通状态

举个例子,要测试的 ip+port: 192.168.0.100:8080 使用 telnet 命令 telnet 192.168.0.100 8080 连通成功: 1 2 3 4 Trying 192.168.0.100... Connected to 192.168.0.100. Escape character is '^]'. Connection closed by foreign host. 连通失败: 1 2 rying 192.168.0.100... telnet: Unable to connect to remote host: Connection refused 使用 nc 命令 nc -zvw3 192.168.0.100 8080 参