<\/figure>\n<\/p>\n\u6570\u636e\u5305\u7ecf\u8fc7\u7684\u8def\u7531\u5668\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\u7f51\u7edc\u7684\u8def\u7531\u60c5\u51b5\u3002\u5982\u679c\u67d0\u4e2a\u8def\u7531\u5668\u5b58\u5728\u95ee\u9898\uff0c\u90a3\u4e48\u5c31\u4f1a\u5f71\u54cd\u7f51\u7edc\u7684\u4f20\u8f93\u901f\u5ea6\u548c\u8d28\u91cf\u3002<\/p>\n
\u9664\u4e86ping\u548ctraceroute\u547d\u4ee4\u5916\uff0cwget\u547d\u4ee4\u4e5f\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u7f51\u7edc\u7684\u4f20\u8f93\u901f\u5ea6\u3002\u5f53\u6211\u4eec\u4f7f\u7528wget\u547d\u4ee4\u65f6\uff0c\u5b83\u4f1a\u4ece\u6307\u5b9a\u7684URL\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\uff0c\u5e76\u7edf\u8ba1\u4e0b\u8f7d\u901f\u5ea6\u548c\u4e0b\u8f7d\u65f6\u95f4\u3002\u901a\u8fc7\u8ba1\u7b97\u4e0b\u8f7d\u901f\u5ea6\u548c\u4e0b\u8f7d\u65f6\u95f4\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\u7f51\u7edc\u7684\u4f20\u8f93\u901f\u5ea6\u3002<\/p>\n
Linux\u7f51\u7edc\u6d4b\u901f\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n
\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u547d\u4ee4\u6765\u6d4b\u8bd5\u7f51\u7edc\u7684\u4f20\u8f93\u901f\u5ea6\u548c\u8d28\u91cf\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u5e38\u7528\u7684\u7f51\u7edc\u6d4b\u901f\u547d\u4ee4\u3002<\/p>\n
1. ping\u547d\u4ee4<\/p>\n
ping\u547d\u4ee4\u53ef\u4ee5\u6d4b\u8bd5\u7f51\u7edc\u7684\u5ef6\u8fdf\u548c\u4e22\u5305\u7387\u3002\u5b83\u7684\u4f7f\u7528\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165ping\u547d\u4ee4\u52a0\u4e0a\u76ee\u6807\u4e3b\u673a\u7684IP\u5730\u5740\u6216\u57df\u540d\u5373\u53ef\u3002\u4f8b\u5982\uff0c\u8981\u6d4b\u8bd5\u767e\u5ea6\u7684\u7f51\u7edc\u5ef6\u8fdf\u548c\u4e22\u5305\u7387\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
“`<\/p>\n
ping www.baidu.com<\/p>\n
“`<\/p>\n
\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0c\u7ec8\u7aef\u4f1a\u8f93\u51fa\u7c7b\u4f3c\u4ee5\u4e0b\u5185\u5bb9\u7684\u7ed3\u679c\uff1a<\/p>\n
“`<\/p>\n
PING www.a.shifen.com (123.125.115.110) 56(84) bytes of data.<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=1 ttl=128 time=20.8 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=2 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=3 ttl=128 time=20.7 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=4 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=5 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=6 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=7 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=8 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=9 ttl=128 time=20.6 ms<\/p>\n
64 bytes from 123.125.115.110 (123.125.115.110): icmp_seq=10 ttl=128 time=20.6 ms<\/p>\n
— www.a.shifen.com ping statistics —<\/p>\n
10 packets transmitted, 10 received, 0% packet loss, time 9010ms<\/p>\n
rtt min\/avg\/max\/mdev = 20.581\/20.680\/20.818\/0.164 ms<\/p>\n
“`<\/p>\n
\u4ece\u4e0a\u9762\u7684\u7ed3\u679c\u53ef\u4ee5\u770b\u51fa\uff0cping\u547d\u4ee4\u53d1\u9001\u4e8610\u4e2a\u6570\u636e\u5305\uff0c\u5176\u4e2d10\u4e2a\u6570\u636e\u5305\u90fd\u5f97\u5230\u4e86\u76ee\u6807\u4e3b\u673a\u7684\u56de\u5e94\u3002rtt min\/avg\/max\/mdev\u8868\u793a\u7684\u662f10\u4e2a\u6570\u636e\u5305\u7684\u6700\u5c0f\u5ef6\u8fdf\u3001\u5e73\u5747\u5ef6\u8fdf\u3001\u6700\u5927\u5ef6\u8fdf\u548c\u5ef6\u8fdf\u7684\u6807\u51c6\u5dee\u3002\u5982\u679c\u7f51\u7edc\u5b58\u5728\u4e22\u5305\u60c5\u51b5\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u4e22\u5305\u7387\u4e0d\u4e3a0%\u7684\u60c5\u51b5\u3002<\/p>\n
2. traceroute\u547d\u4ee4<\/p>\n
traceroute\u547d\u4ee4\u53ef\u4ee5\u6d4b\u8bd5\u7f51\u7edc\u7684\u8def\u7531\u60c5\u51b5\u3002\u5b83\u7684\u4f7f\u7528\u65b9\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165tracerurl\u6253\u5305exe<\/a>oute\u547d\u4ee4\u52a0\u4e0a\u76ee\u6807\u4e3b\u673a\u7684IP\u5730\u5740\u6216\u57df\u540d\u5373\u53ef\u3002\u4f8b\u5982\uff0c\u8981\u6d4b\u8bd5\u767e\u5ea6\u7684\u7f51\u7edc\u8def\u7531\u60c5\u51b5\uff0c\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n“`<\/p>\n
traceroute www.baidu.com<\/p>\n
“`<\/p>\n
\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0c\u7ec8\u7aef\u4f1a\u8f93\u51fa\u7c7b\u4f3c\u4ee5\u4e0b\u5185\u5bb9\u7684\u7ed3\u679c\uff1a<\/p>\n
“`<\/p>\n
traceroute to www.a.shifen.com (123.125.115.110), 30 hops max, 60 byte packets<\/p>\n
1 192.168.1.1 (192.168.1.1) 1.077 ms 1.141 ms 1.247 ms<\/p>\n","protected":false},"excerpt":{"rendered":"
Linux\u7f51\u7edc\u6d4b\u901f\u539f\u7406\u7f51\u7edc\u6d4b\u901f\u662f\u6307\u901a\u8fc7\u67d0\u79cd\u65b9\u5f0f\u6d4b\u8bd5\u7f51\u7edc\u7684\u4f20\u8f93\u901f\u5ea6\uff0c\u4ee5\u5224\u65ad\u7f51\u7edc\u7684\u8d28\u91cf\u548c\u6027\u80fd\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u7f51\u7edc\u6d4b\u901f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528ping\u547d\u4ee4\u3001\u4f7f\u7528traceroute\u547d\u4ee4\u3001\u4f7f\u7528w<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[11082,186,832,11083,2733],"topic":[],"class_list":["post-6016","post","type-post","status-publish","format-standard","hentry","category-exekf","tag-exe","tag-ilmerge","tag-832","tag-11083","tag-2733"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=6016"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6016\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=6016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=6016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=6016"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=6016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}