wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/paping/paping_1.5.5_x86_linux.tar.gz tar -zvxf paping_1.5.5_x86_linux.tar.gz
Error: Multilib version problems found. This often means that the root cause is something else and multilib version checking is just pointing out that there is a problem. Eg.:
1. You have an upgrade for libstdc++ which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of libstdc++ of the different architecture. If you exclude the bad architecture yum will tell you what the root cause is (which package requires what). You can try redoing the upgrade with --exclude libstdc++.otherarch ... this should give you an error message showing the root cause of the problem.
2. You have multiple architectures of libstdc++ installed, but yum can only see an upgrade for one of those architectures. If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work. 3. You have duplicate versions of libstdc++ installed already. You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). Protected multilib versions: libstdc++-4.8.5-44.el7.i686 != libstdc++-4.8.5-36.el7_6.2.x86_64
看起来一大堆报错信息一般挺吓人的(▔^▔) ,不过莫慌!实际只需要执行如下命令即可解决:
1 2
# 说白了就是安装依赖libsdc++版本不匹配 yum -y install libstdc++
执行完上述命令后,再执行问题二中的两条命令即可,至此就可以愉快的使用 paping 工具了。
使用方式
在linux上使用 paping 工具方式很简单。
1 2 3 4 5 6 7 8
Syntax: paping [options] destination Options: -?, --help display usage -p, --port N set TCP port N (required) // 指定被测试服务的TCP端口(必须) --nocolor Disable color output // 屏蔽彩色输出 -t, --timeout timeout in milliseconds (default 1000) // 指定超时时长,单位为毫秒,默认为1000 -c, --count N set number of checks to N // 指定测试次