Linux centos7上安装tcpping
安装依赖 tcptraceroute
yum install tcptraceroute
![1686894858788471.png image.png](https://static.landui.com/file/upload/20230616/1686894858788471.png)
安装依赖 bc
yum install bc
![1686894876932670.png image.png](https://static.landui.com/file/upload/20230616/1686894876932670.png)
安装 tcpping
wget http://www.vdberg.org/~richard/tcpping
![1686894895244549.png image.png](https://static.landui.com/file/upload/20230616/1686894895244549.png)
cp tcpping /usr/bin
cd /usr/bin
chmod 777 tcpping
![1686894913952250.png image.png](https://static.landui.com/file/upload/20230616/1686894913952250.png)
用法详解:
# 用法:tcpping [-d] [-c] [-C] [-w sec] [-q num] [-x count] ipaddress [port]
# -d 在每个响应时间前,打印时间戳
# -c 以列表形式显示
# -C 输出类似于fping工具中-C选项的结果
# -w 等待时间(默认3)
# -r 每n秒重试一次(默认 1)
# -x 重复n次 (默认无限)