linux下ping命令使用

2017-11-22 09:50:07 7583

示例:ping -c 5 www.landui.com

www.landui.com发送5个包看看是否有连通

[root@localhost ~]# ping -c 5 www.landui.com
PING www.landui.com (183.60.110.171) 56(84) bytes of data.
64 bytes from 183.60.110.171: icmp_seq=1 ttl=55 time=33.0 ms
64 bytes from 183.60.110.171: icmp_seq=2 ttl=55 time=32.8 ms
64 bytes from 183.60.110.171: icmp_seq=3 ttl=55 time=32.8 ms
64 bytes from 183.60.110.171: icmp_seq=4 ttl=55 time=33.0 ms
64 bytes from 183.60.110.171: icmp_seq=5 ttl=55 time=33.0 ms

--- www.landui.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4036ms
rtt min/avg/max/mdev = 32.821/32.963/33.088/0.196 ms

也可以默认,一直ping,需手动停止

ping www.landui.com


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: