首先前往Github下载该项目最新的release

值得一提的是,该项目的tcping比brew 安装的那个功能更全面,多了测速功能。
brew 安装的只能用于检测端口是否打开,根本没啥作用。。

安装一下:

wget https://github.com/paradiseduo/tcping/releases/download/3.7/tcping.zip
unzip tcping.zip
chmod +x tcping
mv tcping /usr/local/bin/
sudo xattr -rd com.apple.quarantine /usr/local/bin/tcping