栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

比 ping 强大百倍的可视化工具!结果一目了然

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

比 ping 强大百倍的可视化工具!结果一目了然

点击关注公众号,回复“1024”获取2TB学习资源!

谈到检测网络联通性工具,ping命令必须首当其充。

但是,今天,民工哥给大家推荐一个强大的命令行工具:gping。

gping 是基于 Rust 编写可视化工具,具有动态图形化界面显示。

安装

下载系统所对应的安装包

本文以CentOS7系统为例,其它系统请参考官方文档。

[root@centos7 ~]# wget https://github.com/orf/gping/releases/download/gping-v1.2.6/gping-Linux-x86_64.tar.gz
[root@centos7 ~]# ll gping-Linux-x86_64.tar.gz 
-rw-r--r-- 1 root root 889865 Dec  7 22:20 gping-Linux-x86_64.tar.gz
[root@centos7 ~]# mkdir /usr/local/gping
[root@centos7 ~]# tar zxf gping-Linux-x86_64.tar.gz -C /usr/local/gping

如果安装完后,运行命令出现下述错误:

./gping: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./gping)

解决方案如下:

curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz 
cd glibc-2.18/
mkdir build
cd build/
../configure --prefix=/usr
make -j2
make install
使用
[root@centos7 gping]# ./gping --help
gping 1.2.6
Ping, but with a graph.

USAGE:
    gping [FLAGS] [OPTIONS] ...

FLAGS:
        --cmd                Graph the execution time for a list of commands rather than pinging hosts
    -h, --help               Prints help information
    -4                       Resolve ping targets to IPv4 address
    -6                       Resolve ping targets to IPv6 address
    -s, --simple-graphics    Uses dot characters instead of braille
    -V, --version            Prints version information

OPTIONS:
    -b, --buffer                     Determines the number of seconds to display in the graph. [default: 30]
    -n, --watch-interval     Watch interval seconds (provide partial seconds like '0.5'). Default for
                                             ping is 0.2, default for cmd is 0.5.

ARGS:
    ...    Hosts or IPs to ping, or commands to run if --cmd is provided.

它还可以同时对多个目标地址进行操作。

推荐阅读 点击标题可跳转

一键摸鱼神器火了!专为 Windows 系统打造

中国互联网寒冬的根本原因原来是这。。。

Docker 大势已去,Podman 即将崛起!

阿里云被工信部暂停合作!Log4j 持续爆雷。。

警告!VPN 翻墙被抓了!已大规模行政处罚

再见 Xshell !这款开源终端工具逼格更高

Mybatis-Plus 支持分库分表了?官方神器发布!

真正的缓存之王,Google Guava 只是弟弟

4 种方案解决 Maven 创建项目过慢问题

PS:因为公众号平台更改了推送规则,如果不想错过内容,记得读完点一下“在看”,加个“星标”,这样每次新文章推送才会第一时间出现在你的订阅列表里。

随手在看、转发是最大的支持!

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/680017.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号