有些服务器禁止ping(例如azure)所以我们需要使用tcp端口来检测服务器延迟。
项目地址https://github.com/jlyo/tcping
安装
git clone https://github.com/jlyo/tcping.git
cd tcping
make install
使用
tcping -p 端口 服务器地址
tcping -p 端口 服务器地址 -c ping次数
tcping -p 端口 服务器地址 -i 间隔(秒)
转载说明
除特别注明外,本站文章采用 CC BY-NC-SA 4.0 协议。转载请注明出处。