{"id":2157,"date":"2022-11-28T10:41:42","date_gmt":"2022-11-28T02:41:42","guid":{"rendered":"http:\/\/www.laihp.top\/zqb\/?p=2157"},"modified":"2022-11-28T10:50:18","modified_gmt":"2022-11-28T02:50:18","slug":"mac-%e4%bd%bf%e7%94%a8tcping%e5%91%bd%e4%bb%a4%e6%b5%8b%e5%bb%b6%e6%97%b6","status":"publish","type":"post","link":"http:\/\/www.laihp.top\/zqb\/?p=2157","title":{"rendered":"Mac \u4f7f\u7528tcping\u547d\u4ee4\u6d4b\u5ef6\u65f6"},"content":{"rendered":"<div>\n<div>\n<p>\u9996\u5148\u524d\u5f80Github\u4e0b\u8f7d\u8be5\u9879\u76ee\u6700\u65b0\u7684<a href=\"https:\/\/github.com\/paradiseduo\/tcping\/releases\" target=\"_blank\" rel=\"noopener\">release<\/a>\u00a0 \uff08\u6216\u76f4\u63a5\u4ece\u672c\u7ad9\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.laihp.top\/zqb\/wp-content\/uploads\/2022\/11\/tcping.zip\">tcping<\/a>\uff09<\/p>\n<p>\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u8be5\u9879\u76ee\u7684tcping\u6bd4brew \u5b89\u88c5\u7684\u90a3\u4e2a\u529f\u80fd\u66f4\u5168\u9762\uff0c\u591a\u4e86\u6d4b\u901f\u529f\u80fd\uff0cbrew \u5b89\u88c5\u7684\u53ea\u80fd\u7528\u4e8e\u68c0\u6d4b\u7aef\u53e3\u662f\u5426\u6253\u5f00\uff0c\u6839\u672c\u6ca1\u5565\u4f5c\u7528\u3002\u3002<\/p>\n<p>\u89e3\u538b\u4e4b\u540e\uff0c\u5b89\u88c5\u4e00\u4e0b\uff1a<\/p>\n<\/div>\n<pre class=\"line-numbers language-bash\"><code class=\"bash language-bash\">\u279c  mv tcping \/usr\/local\/bin\/<\/code><\/pre>\n<p>\u7136\u540e\u770b\u4e00\u4e0b\u4f7f\u7528\u8bf4\u660e\uff1a<\/p>\n<\/div>\n<div>\n<pre class=\"line-numbers language-bash\"><code class=\"bash language-bash\">\u279c tcping\r\ntcping is a ping over tcp connection.\r\n\r\nExamples:\r\n    1. ping over tcp with custom port 10 times\r\n       &gt; tcping www.baidu.com 80\r\n    2. ping over tcp with custom port 5 times\r\n       &gt; tcping -c 5 www.baidu.com 443\r\n\r\nUSAGE: tcping [--count &lt;count&gt;] &lt;ip&gt; &lt;port&gt;\r\n\r\nARGUMENTS:\r\n  &lt;ip&gt;                    The IP or Domain to tcping.\r\n  &lt;port&gt;                  The port to tcping.\r\n\r\nOPTIONS:\r\n  -c, --count &lt;count&gt;     The number of times to repeat 'tcping'. Default value is 10, Max value is 65535\r\n  -h, --help              Show help information.<\/code><\/pre>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>\n<pre class=\"line-numbers language-bash\"><code class=\"bash language-bash\">\u279c tcping -c 5 baidu.com 443\r\nbaidu.com:443 has address: 220.181.38.148:443 - Connected - 32.682ms\r\nbaidu.com:443 has address: 220.181.38.148:443 - Connected - 29.372ms\r\nbaidu.com:443 has address: 39.156.69.79:443 - Connected - 52.232ms\r\nbaidu.com:443 has address: 220.181.38.148:443 - Connected - 28.922ms\r\nbaidu.com:443 has address: 220.181.38.148:443 - Connected - 28.975ms\r\nPing statistics baidu.com:443\r\n    5 probes sent.\r\n    5 successful, 0 failed.\r\nApproximate trip times:\r\n    Minimum = 28.922ms, Maximum = 52.232ms, Average = 34.437ms<\/code><\/pre>\n<pre class=\"line-numbers language-bash\"><code class=\"bash language-bash\">\u279c  bin tcping -c 5 220.181.38.148 443\r\n220.181.38.148:443 - Connected - 30.635ms\r\n220.181.38.148:443 - Connected - 30.816ms\r\n220.181.38.148:443 - Connected - 28.708ms\r\n220.181.38.148:443 - Connected - 30.713ms\r\n220.181.38.148:443 - Connected - 34.641ms\r\nPing statistics 220.181.38.148:443\r\n    5 probes sent.\r\n    5 successful, 0 failed.\r\nApproximate trip times:\r\n    Minimum = 28.708ms, Maximum = 34.641ms, Average = 31.103ms<\/code><\/pre>\n<p>\u94fe\u63a5\uff1ahttps:\/\/www.jianshu.com\/p\/b6ba38cd5e70<br \/>\n\u6765\u6e90\uff1a\u7b80\u4e66<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u524d\u5f80Github\u4e0b\u8f7d\u8be5\u9879\u76ee\u6700\u65b0\u7684release\u00a0 \uff08\u6216\u76f4\u63a5\u4ece\u672c\u7ad9\u4e0b\u8f7d\uff1atcping\uff09 \u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u8be5\u9879\u76ee &#8230; <a title=\"Mac \u4f7f\u7528tcping\u547d\u4ee4\u6d4b\u5ef6\u65f6\" class=\"read-more\" href=\"http:\/\/www.laihp.top\/zqb\/?p=2157\" aria-label=\"\u7ee7\u7eed\u9605\u8bfbMac \u4f7f\u7528tcping\u547d\u4ee4\u6d4b\u5ef6\u65f6\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2157","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts\/2157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2157"}],"version-history":[{"count":4,"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts\/2157\/revisions"}],"predecessor-version":[{"id":2162,"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=\/wp\/v2\/posts\/2157\/revisions\/2162"}],"wp:attachment":[{"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2157"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.laihp.top\/zqb\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}