今天用ubuntu ping局域網的主機時, 發現一直在不停的ping,剛接觸ubuntu,無奈太菜,汗~~~。
64 bytes from 192.168.1.100: icmp_req=1 ttl=128 time=0.240 ms
64 bytes from 192.168.1.100: icmp_req=3 ttl=128 time=3.52 ms
64 bytes from 192.168.1.100: icmp_req=4 ttl=128 time=5.77 ms
64 bytes from 192.168.1.100: icmp_req=5 ttl=128 time=0.331 ms
64 bytes from 192.168.1.100: icmp_req=6 ttl=128 time=0.274 ms
64 bytes from 192.168.1.100: icmp_req=7 ttl=128 time=0.238 ms
64 bytes from 192.168.1.100: icmp_req=8 ttl=128 time=0.242 ms
64 bytes from 192.168.1.100: icmp_req=9 ttl=128 time=0.246 ms
64 bytes from 192.168.1.100: icmp_req=10 ttl=128 time=0.234 ms
解決方法。
1. ctrl + c
2.採用這個命令ping主機: ping -c 10 192.168.1.100 (10次),不用過多解釋吧~~~~
=========================================================================
Ctrl+C:送SIGINT信號,默認進程會結束,但是進程自己可以重定義收到這個信號的行爲。
Ctrl+Z:送SIGSTOP信號,進程只是被停止,再送SIGCONT信號,進程繼續運行。