[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