请输入手机号码
请输入密码
telnet(检查端口是否开放)telnet 目标IP 端口示例:
telnet 8.8.8.8 80✅ 能连上说明 TCP 端口可达
nc(推荐,更灵活)nc -vz 目标IP 端口示例:
nc -vz 8.8.8.8 443curl(HTTP/HTTPS)curl -v http://目标IPiperf3(最常用 ✅)适合测试 TCP/UDP 带宽、延迟、丢包
# CentOS
yum install iperf3 -y
# Ubuntu / Debian
apt install iperf3 -yiperf3 -siperf3 -c 香港服务器IPiperf3 -s -p 5201
iperf3 -c 香港服务器IP -p 5201iperf3 -c 香港服务器IP -P 4ping(ICMP,但可参考)ping 香港服务器IPmtr(推荐,结合 ping + traceroute)mtr -r -c 10 香港服务器IPss -antp
# 或
netstat -antptcpdump -i eth0 tcp香港服务器常见优化项:
sysctl -w net.ipv4.tcp_fin_timeout=30
sysctl -w net.core.rmem_max=134217728iperf3 看提升)| 目的 | 工具 |
|---|---|
| 端口是否通 | nc / telnet |
| 带宽 | iperf3 |
| 延迟 / 丢包 | mtr |
| TCP 状态 | ss / tcpdump |
如果你能说明:
我可以给你一套针对性测试方案。