1、将rpm文件上传到tcping文件夹中
2、cd tcping目录,然后执行rpm -Uvh --force --nodeps *.rpm,部署依赖
4、给tcping文件授权 chmod +x tcping
5、执行命令后台运行tcping:./tcpping -d -r 3 ip port> test.txt &
备注:rpm包下载不了的,可以自己来这个网站下载:
https://centos.pkgs.org/7/centos-x86_64/traceroute-2.0.22-2.el7.x86_64.rpm.html
tcping文件下载地址:
https://soft.mengclaw.com/Bash/TCP-PING
下载后,直接将TCP-PING重命名为tcping,然后授权可用