在终端输入 yum install tcping 即可安装完成。
用法示例:
Linux 下的 tcping 命令功能非常简单,如下所示,感觉没有 tcpping 或 Windows 下的 tcping 功能强大。
Usage: tcping [-q] [-t timeout_sec] [-u timeout_usec] <host> <port>
[root@DB-Server ~]# tcping 192.168.27.57 1433
192.168.27.57 port 1433 open.