{"id":1556,"date":"2016-05-07T22:26:59","date_gmt":"2016-05-07T14:26:59","guid":{"rendered":"https:\/\/www.freemindworld.com\/blog\/?p=1556"},"modified":"2016-05-07T22:26:59","modified_gmt":"2016-05-07T14:26:59","slug":"160507_troubleshooting_a_weird_network_problem","status":"publish","type":"post","link":"https:\/\/www.freemindworld.com\/blog\/2016\/160507_troubleshooting_a_weird_network_problem.shtml","title":{"rendered":"\u4e00\u4e2a\u7f51\u7edc\u8bbf\u95ee\u6545\u969c\u7684\u6392\u67e5"},"content":{"rendered":"<h1>\u6545\u969c\u63cf\u8ff0\uff1a<\/h1>\n<p>\u4e00\u4e2aPython\u7a0b\u5e8f\uff0c\u5728\u6211\u7684Macbook Air\u4e0a\u4f7f\u7528<a href=\"http:\/\/gearman.org\/\" target=\"_blank\">Gearman<\/a>\u5e93\u8bbf\u95eeGearman\u670d\u52a1\u5668\u65f6\u59cb\u7ec8\u62a5\u9519\uff1a<br \/>\n<code>Found\u00a0no\u00a0valid\u00a0connections\u00a0in\u00a0list:<br \/>\n[&lt;GearmanConnection 111.111.111.111:80\u00a0connected=True&gt;]<\/code><\/p>\n<h1>\u95ee\u9898\u6392\u67e5\u8fc7\u7a0b\uff1a<\/h1>\n<ol>\n<li>\u6211\u7684\u53e6\u4e00\u53f0\u7535\u8111\u7684Linux\u7cfb\u7edf\u4e0b\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u662f\u6b63\u5e38\u7684\uff0c\u6240\u4ee5\u8bc1\u660eGearman\u670d\u52a1\u5668\u672c\u8eab\u662f\u597d\u7684\uff0c\u7a0b\u5e8f\u4e5f\u662f\u5bf9\u7684\u3002<\/li>\n<li>\u522b\u4eba\u7684Macbook Air\/Macbook Pro\u4e0a\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u4e5f\u662f\u6b63\u5e38\u7684\uff0c\u7cfb\u7edf\u4e2d\u7684Python\u7248\u672c\u662f\u4e00\u81f4\u7684\uff0c\u8bc1\u660e\u8fd9\u4e2a\u7a0b\u5e8f\u5728Mac OS X\u4e0b\u5e76\u4e0d\u5b58\u5728\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/li>\n<li>111.111.111.111:80\u8fd9\u4e2a\u662f\u4e00\u4e2a\u4ece\u5f00\u53d1\u73af\u5883\u8bbf\u95ee\u751f\u4ea7\u73af\u5883\u670d\u52a1\u5668\u7684\u865a\u62dfIP\/\u7aef\u53e3\uff0c\u628aGearman\u670d\u52a1\u5b89\u88c5\u5230\u5f00\u53d1\u73af\u5883\u7f51\u7edc\u4e2d222.222.222.222:4730\uff0c\u7a0b\u5e8f\u8fd0\u884c\u6b63\u5e38\u3002<\/li>\n<li>\u7531\u4e8e\u8bbf\u95ee\u5f00\u53d1\u73af\u5883\u6b63\u5e38\u3001\u8bbf\u95ee\u751f\u4ea7\u73af\u5883\u5f02\u5e38\uff0c\u6240\u4ee5\u6000\u7591\u662f\u7f51\u7edc\u539f\u56e0\u3002\u4f7f\u7528ping\/traceroute\u547d\u4ee4\u8bbf\u95ee111.111.111.111\uff0c\u90fd\u6b63\u5e38\u3002\u7528telnet 111.111.111.111 80\u5c1d\u8bd5TCP\u8fde\u63a5\uff0c\u4e5f\u6b63\u5e38\u3002<\/li>\n<li>\u5728\u65e0\u7ebf\/\u6709\u7ebf\u4e4b\u95f4\u5207\u6362\u7f51\u7edc\u7269\u7406\u8fde\u63a5\u65b9\u5f0f\uff0c\u6d4b\u8bd5\u7ed3\u679c\u4e00\u6837\uff1a\u672c\u673a\u4e0e\u76ee\u6807\u670d\u52a1\u5668\u4e4b\u95f4\u7f51\u7edc\u901a\u7545\uff0cTCP\u8fde\u63a5\u6b63\u5e38\uff0c\u4f46Gearman\u8fde\u63a5\u65e0\u6cd5\u6b63\u5e38\u5efa\u7acb\u3002\u5e76\u4e14\u540c\u5904\u4e8e\u540c\u4e00\u4e2a\u7f51\u7edc\u4e2d\u7684\u5176\u5b83\u7535\u8111\u4e0a\u8fd0\u884c\u4e00\u6837\u7a0b\u5e8f\u90fd\u8bbf\u95ee\u6b63\u5e38\u3002<\/li>\n<li>\u6000\u7591Gearman\u7684Python\u5e93\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\u6709Bug\uff0c\u5728\u91cc\u9762\u52a0\u4e86\u5f88\u591aprint\u6765\u6253\u5370\u65e5\u5fd7\uff0c\u53d1\u73b0\u5ba2\u6237\u7aef\u5728\u4e0e\u670d\u52a1\u5668\u5efa\u7acb\u5b8c\u8fde\u63a5\u540e\uff0c\u5728\u771f\u6b63\u8981\u901a\u4fe1\u65f6\uff0c\u8fde\u63a5\u53c8\u53d8\u6210\u4e86\u65ad\u5f00\u72b6\u6001\u3002\u4f46\u7531\u4e8e\u4e0d\u592a\u4e86\u89e3Gearman\u5e93\u7684\u5b9e\u73b0\u7ec6\u8282\uff0c\u518d\u8981\u8fdb\u4e00\u6b65Debug\uff0c\u5b58\u5728\u4e00\u5b9a\u56f0\u96be\uff0c\u6682\u65f6\u653e\u5f03\u8fd9\u4e2a\u601d\u8def\u3002<\/li>\n<li>\u4e3a\u4e86\u6392\u67e5Gearman\u8fde\u63a5\u65ad\u5f00\u7684\u539f\u56e0\uff0c\u7528<a href=\"https:\/\/www.wireshark.org\/\" target=\"_blank\">Wireshark<\/a>\u8fdb\u884c\u6293\u5305\u3002\u6293\u5305\u7684\u7ed3\u679c\u975e\u5e38\u4ee4\u4eba\u60ca\u8bb6\uff1a\u5728\u7a0b\u5e8f\u8fd0\u884c\u7684\u6574\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u6ca1\u6709\u6293\u5230\u4efb\u4f55\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u901a\u4fe1\u7684\u6570\u636e\u5305\u3002\u4f46\u662f\u7a0b\u5e8f\u6253\u5370\u51fa\u6765\u7684\u65e5\u5fd7\u5374\u660e\u660e\u663e\u793a\u51fa\u8fde\u63a5\u662f\u5148\u5efa\u7acb\u518d\u65ad\u5f00\u7684\u3002<\/li>\n<li>\u81f3\u6b64\uff0c\u95ee\u9898\u5df2\u7ecf\u5feb\u8981\u67e5\u6e05\u695a\u4e86\uff1a\u672c\u673a\u6709\u4e2a\u7a0b\u5e8f\u52ab\u6301\u4e86\u672c\u673a\u53d1\u8d77\u7684\u7f51\u7edc\u901a\u4fe1\uff0c\u5b9e\u65bd\u4e2d\u95f4\u4eba\u653b\u51fb\uff0c\u9020\u6210Gearman\u8fde\u63a5\u5f02\u5e38\u3002<\/li>\n<li>\u7528Python\u5199socket\u7a0b\u5e8f\u5c1d\u8bd5\u5411\u4e0d\u540c\u76ee\u6807\u53d1\u8d77\u5404\u79cdTCP\u8fde\u63a5\uff08\u540e\u6765\u610f\u8bc6\u5230\u5176\u5b9e\u7528telnet\u5c31\u53ef\u4ee5\u4e86\uff09\uff0c\u540c\u65f6\u7528Wireshark\u6293\u5305\uff0c\u53d1\u73b0\u672c\u673a\u53d1\u8d77\u7684\u6240\u6709\u76ee\u6807\u4e3a80\u7aef\u53e3\u7684\u8fde\u63a5\u90fd\u4f1a\u88ab\u52ab\u6301\u3002\u52ab\u6301\u7684\u6548\u679c\u662f\u5982\u679c\u901a\u8fc780\u7aef\u53e3\u8fdb\u884cHTTP\u901a\u4fe1\uff0c\u52ab\u6301\u7684\u7a0b\u5e8f\u5c31\u4f1a\u5145\u5f53\u4e00\u4e2a\u4ee3\u7406\u670d\u52a1\u5668\u7684\u529f\u80fd\uff0c\u6b63\u5e38\u5b8c\u6210\u901a\u4fe1\u8fc7\u7a0b\u3002\u4f46\u662f\u4e00\u5f00\u59cb\u51fa\u95ee\u9898\u7684\u7a0b\u5e8f\u662f\u572880\u7aef\u53e3\u8dd1Gearman\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u6240\u4ee5\u8fd9\u4e2a\u52ab\u6301\u7a0b\u5e8f\u65e0\u6cd5\u6b63\u786e\u5904\u7406\uff0c\u9020\u6210\u4e86\u901a\u4fe1\u5f02\u5e38\u3002<\/li>\n<li>\u6700\u540e\u5c31\u662f\u8981\u627e\u51fa\u662f\u54ea\u4e2a\u7a0b\u5e8f\u5b9e\u65bd\u4e86\u52ab\u6301\uff0c\u7528\u4e86\u4e00\u4e2a\u5f88\u571f\u7684\u65b9\u6cd5\uff1a\u4e0b\u8f7d\u4e00\u4e2a\u5927\u6587\u4ef6\uff0c\u540c\u65f6\u7528netstat -na\u67e5\u51fa\u4e0e\u670d\u52a1\u566880\u7aef\u53e3\u901a\u4fe1\u7684\u672c\u5730\u7aef\u53e3\u53f7\uff08\u8c01\u53ebMac OS X\u7684netstat\u547d\u4ee4\u6ca1\u6709-p\u53c2\u6570\u76f4\u63a5\u770b\u662f\u54ea\u4e2a\u8fdb\u7a0b\u7684\u8fde\u63a5\u5462\uff1f\uff09\uff0c\u7136\u540e\u7528sudo lsof -i :&lt;local port&gt;\u547d\u4ee4\u67e5\u51fa\u8fd9\u4e2a\u672c\u5730\u7aef\u53e3\u53f7\u7684\u4f7f\u7528\u8005\u3002<\/li>\n<\/ol>\n<h1>\u771f\u76f8\u5927\u767d\uff1a<\/h1>\n<p><a href=\"http:\/\/www.cisco.com\/c\/en\/us\/support\/security\/anyconnect-secure-mobility-client\/tsd-products-support-series-home.html\" target=\"_blank\">Cisco AnyConnect Secure Mobility Client<\/a>\u4e2d\u81ea\u5e26\u4e86\u4e00\u4e2a\u8fdb\u7a0b\u540d\u4e3aacwebsecagent\u7684Web\u5b89\u5168\u6a21\u5757\uff0c\u8fd9\u4e2a\u5b89\u5168\u6a21\u5757\u4e0d\u7ba1VPN\u662f\u5426\u5728\u4f7f\u7528\uff0c\u90fd\u4f1a\u52ab\u6301\u672c\u673a\u6240\u6709\u7684\u53d1\u5f8080\u7aef\u53e3\u7684\u901a\u4fe1\uff0c\u5177\u4f53\u5b83\u505a\u4e86\u4ec0\u4e48\u597d\u4e8b\u574f\u4e8b\u5c31\u4e0d\u5f97\u800c\u77e5\u4e86\u3002<\/p>\n<p>\u627e\u5230\u4e86\u95ee\u9898\u6240\u5728\uff0c\u7f51\u4e0a\u641c\u4e00\u641c\u5c31\u80fd\u67e5\u5230\u5f88\u591a\u5410\u69fd\u8fd9\u4e2aWeb Security\u6a21\u5757\u7684\u8d34\u5b50\u4e86\uff0c\u5b83\u4f1a\u968f\u7740AnyConnect\u9ed8\u8ba4\u5b89\u88c5\u5230\u4f60\u7684\u7535\u8111\u4e0a\uff08\u6211\u7684\u7535\u8111\u7cfb\u7edf\u662fIT\u9884\u88c5\u7684\uff0c\u4e0d\u7136\u6211\u88c5AnyConnect\u65f6\u80af\u5b9a\u4f1a\u624b\u5de5\u628a\u8fd9\u4e2a\u52fe\u52fe\u53bb\u6389\uff09\u3002\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6cd5\u4e5f\u5f88\u7b80\u5355 \uff0c\u4e00\u884c\u547d\u4ee4\u5378\u8f7d\u5b83\uff1a<br \/>\n<code> sudo \/opt\/cisco\/anyconnect\/bin\/websecurity_uninstall.sh<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6545\u969c\u63cf\u8ff0\uff1a \u4e00\u4e2aPython\u7a0b\u5e8f\uff0c\u5728\u6211\u7684Macbook Air\u4e0a\u4f7f\u7528Gearma &hellip; <a href=\"https:\/\/www.freemindworld.com\/blog\/2016\/160507_troubleshooting_a_weird_network_problem.shtml\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1556","post","type-post","status-publish","format-standard","hentry","category-11"],"_links":{"self":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts\/1556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/comments?post=1556"}],"version-history":[{"count":5,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts\/1556\/revisions"}],"predecessor-version":[{"id":1561,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts\/1556\/revisions\/1561"}],"wp:attachment":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/media?parent=1556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/categories?post=1556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/tags?post=1556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}