{"id":1615,"date":"2018-08-21T10:18:47","date_gmt":"2018-08-21T02:18:47","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=1615"},"modified":"2018-10-25T09:58:48","modified_gmt":"2018-10-25T01:58:48","slug":"%e4%b8%80%e5%88%86%e9%92%9f%e5%ae%9e%e7%8e%b0%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%ef%bc%88ngrok%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%ba%ef%bc%89","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/1615","title":{"rendered":"\u4e00\u5206\u949f\u5b9e\u73b0\u5185\u7f51\u7a7f\u900f\uff08ngrok\u670d\u52a1\u5668\u642d\u5efa\uff09"},"content":{"rendered":"<div class=\"article-header-box\">\n<div class=\"article-header\">\n<div class=\"article-title-box\">\n<h1 class=\"title-article\">\u4e00\u5206\u949f\u5b9e\u73b0\u5185\u7f51\u7a7f\u900f\uff08ngrok\u670d\u52a1\u5668\u642d\u5efa\uff09<\/h1>\n<\/div>\n<div class=\"article-info-box\">\n<div class=\"article-bar-top d-flex\"><span class=\"time\">2017\u5e7409\u670805\u65e5 10:47:45<\/span><\/p>\n<div class=\"float-right\"><span class=\"read-count\">\u9605\u8bfb\u6570\uff1a140936<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<article>\n<div id=\"article_content\" class=\"article_content clearfix csdn-tracking-statistics\" data-pid=\"blog\" data-mod=\"popu_307\" data-dsm=\"post\">\n<div class=\"htmledit_views\">\n<p><strong>\u7b80\u5355\u6765\u8bf4\u5185\u7f51\u7a7f\u900f\u7684\u76ee\u7684\u662f\uff1a\u8ba9\u5916\u7f51\u80fd\u8bbf\u95ee\u4f60\u672c\u5730\u7684\u5e94\u7528\uff0c\u4f8b\u5982\u5728\u5916\u7f51\u6253\u5f00\u4f60\u672c\u5730http:\/\/127.0.0.1\u6307\u5411\u7684Web\u7ad9\u70b9\u3002<\/strong><\/p>\n<p>\u6700\u8fd1\u516c\u53f8\u7684\u82b1\u751f\u58f3\u5230\u671f\u4e86\uff0c\u8981\u7eed\u8d39\uff0c\u53d1\u73b0\u4ef7\u683c\u4e00\u76f4\u5728\u6da8\uff0c\u90fd\u662f5\u5e74\u4ee5\u4e0a\u7684\u8001\u7528\u6237\uff0c\u65d7\u8230\u7248\u90fd\u6ca1\u6709\u5b9e\u73b0\u5185\u7f51\u5b8c\u5168\u7a7f\u900f\uff0c\u6253\u7b97\u81ea\u5df1\u52a8\u624b\u66ff\u6362\u8fd9\u4e2a\u670d\u52a1\uff0c\u4e2d\u95f4\u8d70\u4e86\u4e0d\u5c11\u7684\u5f2f\u8def\uff0c\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e9b\u6587\u5b57\u4e3a\u5927\u5bb6\u63d0\u4f9b\u53c2\u8003\u3002<\/p>\n<p>\u968f\u7740\u5f00\u53d1\u4e0e\u8fd0\u884c\u79fb\u52a8\u4e92\u8054\u7f51\u7684\u5e94\u7528\u8d8a\u6765\u8d8a\u591a\u5bf9\u6253\u901a\u5185\u5916\u7f51\u7684\u9700\u8981\u4e5f\u66f4\u52a0\u8feb\u5207\uff0c\u5982\u5fae\u4fe1\u5f00\u53d1\u3001IOS\u4e0eAndroid\u5f00\u53d1\u7b49\u3002<\/p>\n<p>\u867d\u7136\u79df\u7528VPS\u3001ECS\u7b49\u670d\u52a1\u5668\u53ef\u4ee5\u89e3\u51b3\u5f88\u591a\u95ee\u9898\u4f46\u9ad8\u6027\u80fd\u7684\u5916\u7f51\u670d\u52a1\u5668\u4ef7\u683c\u975e\u5e38\u8d35\u8fd8\u6709\u6570\u636e\u5b89\u5168\u95ee\u9898\uff0c\u6211\u9009\u62e9\u7684\u662f\u516c\u7f51\u670d\u52a1\u5668\u4ec5\u505a\u4ee3\u7406\u4e0e\u8f7b\u91cf\u5e94\u7528\uff0c\u590d\u6742\u7684\u5e94\u7528\u90e8\u7f72\u5230\u5185\u7f51\u670d\u52a1\u5668\u518d\u7a7f\u900f\u8bbf\u95ee\u3002<\/p>\n<h1><a name=\"t0\"><\/a>\u4e00\u3001\u5185\u7f51\u7a7f\u900f\u6982\u8981<\/h1>\n<p>\u4e3a\u4e86\u7406\u89e3\u5185\u7f51\u7a7f\u900f\u6211\u4eec\u5148\u6765\u4e86\u89e3\u51e0\u4e2a\u6982\u5ff5\uff1a<\/p>\n<h2><a name=\"t1\"><\/a>1.1\u3001IP\u5730\u5740<\/h2>\n<p>\u7f51\u7edc\u4e2d\u552f\u4e00\u5b9a\u4f4d\u4e00\u53f0\u8bbe\u5907\u7684\u903b\u8f91\u5730\u5740\uff0c\u7c7b\u4f3c\u6211\u4eec\u7684\u7535\u8bdd\u53f7\u7801<\/p>\n<p>\u5728\u4e92\u8054\u7f51\u4e2d\u6211\u4eec\u8bbf\u95ee\u4e00\u4e2a\u7f51\u7ad9\u6216\u4f7f\u7528\u4e00\u4e2a\u7f51\u7edc\u670d\u52a1\u6700\u7ec8\u90fd\u9700\u8981\u901a\u8fc7IP\u5b9a\u4f4d\u5230\u6bcf\u4e00\u53f0\u4e3b\u673a\uff0c\u5982\u8bbf\u95eebaidu\u7f51\u7ad9\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903170722046-1051742415.png\" alt=\"\" \/><\/p>\n<p>\u5176\u4e2d119.75.213.61\u5c31\u662f\u4e00\u4e2a\u516c\u7f51\u7684IP\u5730\u5740\uff0c\u4ed6\u6700\u7ec8\u6307\u5411\u4e86\u4e00\u53f0\u670d\u52a1\u5668\u3002<\/p>\n<p>IP\u5730\u5740\u662fIP\u534f\u8bae\u63d0\u4f9b\u7684\u4e00\u79cd\u7edf\u4e00\u7684\u5730\u5740\u683c\u5f0f\uff0c\u5b83\u4e3a\u4e92\u8054\u7f51\u4e0a\u7684\u6bcf\u4e00\u4e2a\u7f51\u7edc\u548c\u6bcf\u4e00\u53f0\u4e3b\u673a\u5206\u914d\u4e00\u4e2a\u903b\u8f91\u5730\u5740\uff0c\u4ee5\u6b64\u6765\u5c4f\u853d\u7269\u7406\u5730\u5740\u7684\u5dee\u5f02\u3002<\/p>\n<p>\u5185\u7f51IP\u53ef\u4ee5\u540c\u65f6\u51fa\u73b0\u5728\u591a\u4e2a\u4e0d\u540c\u7684\u5c40\u57df\u7f51\u7edc\u4e2d\uff0c\u5982A\u516c\u53f8\u7684U1\u7528\u6237\u83b7\u5f97\u4e86192.168.0.5\uff0cB\u516c\u53f8\u7684U3\u7528\u6237\u4e5f\u53ef\u4ee5\u83b7\u5f97192.168.0.5\uff1b\u4f46\u516c\u7f51IP\u662f\u552f\u4e00\u7684\uff0c\u56e0\u4e3a\u6211\u4eec\u53ea\u6709\u4e00\u4e2aInternet\u3002<\/p>\n<div class=\"cnblogs_code\">\n<pre>\/\/\u5c40\u57df\u7f51\u53ef\u4f7f\u7528\u7684\u7f51\u6bb5\uff08\u79c1\u7f51\u5730\u5740\u6bb5\uff09\u6709\u4e09\u5927\u6bb5\uff1a\r\n10.0.0.0~10.255.255.255\uff08A\u7c7b\uff09\r\n172.16.0.0~172.31.255.255\uff08B\u7c7b\uff09\r\n192.168.0.0~192.168.255.255\uff08C\u7c7b\uff09<\/pre>\n<\/div>\n<h2><a name=\"t2\"><\/a>1.2\u3001\u57df\u540d<\/h2>\n<p>\u57df\u540d\u662fIP\u7684\u522b\u540d\uff0c\u4fbf\u4e8e\u8bb0\u5fc6\uff0c\u57df\u540d\u6700\u7ec8\u901a\u8fc7DNS\u89e3\u6790\u6210IP\u5730\u5740\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903220051733-158569545.png\" alt=\"\" \/><\/p>\n<p>IP V4\u662f\u4e00\u4e2a32\u4f4d\u7684\u6570\u5b57\uff0cIP V6\u6709128\u4f4d\uff0c\u8981\u8bb0\u4f4f\u4e00\u4e32\u6beb\u65e0\u610f\u4e49\u7684\u6570\u5b57\u975e\u5e38\u56f0\u96be\uff0c\u57df\u540d\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u5982www.zhangguo.com.cn\u5c31\u662f\u4e00\u4e2a\u57df\u540d\uff0ccn\u8868\u793a\u5730\u533a\uff0ccom\u8868\u793a\u5546\u4e1a\u673a\u6784\uff0czhangguo\u662f\u516c\u53f8\u540d\u79f0\uff0cwww\u662f\u4e3b\u673a\u540d<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903172918812-661389359.png\" alt=\"\" \/><\/p>\n<p>DNS\u67e5\u8be2\u8fc7\u7a0b\u5982\u4e0b\uff0c\u6700\u7ec8\u5c06\u57df\u540d\u53d8\u6210IP\u5730\u5740<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903172617749-201355603.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><a name=\"t3\"><\/a>1.3\u3001NAT<\/h2>\n<p>NAT\uff08Network Address Translation\uff09\u5373\u7f51\u7edc\u5730\u5740\u8f6c\u6362\uff0cNAT\u80fd\u5c06\u5176\u672c\u5730\u5730\u5740\u8f6c\u6362\u6210\u5168\u7403IP\u5730\u5740\u3002<\/p>\n<p>\u5185\u7f51\u7684\u4e00\u4e9b\u4e3b\u673a\u672c\u6765\u5df2\u7ecf\u5206\u914d\u5230\u4e86\u672c\u5730IP\u5730\u5740\uff08\u5982\u5c40\u57df\u7f51DHCP\u5206\u914d\u7684IP\uff09\uff0c\u4f46\u73b0\u5728\u53c8\u60f3\u548c\u56e0\u7279\u7f51\u4e0a\u7684\u4e3b\u673a\u901a\u4fe1\uff08\u5e76\u4e0d\u9700\u8981\u52a0\u5bc6\uff09\u65f6\uff0c\u53ef\u4f7f\u7528NAT\u65b9\u6cd5\u3002<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528\u5c11\u91cf\u7684\u516c\u6709IP \u5730\u5740\u4ee3\u8868\u8f83\u591a\u7684\u79c1\u6709IP \u5730\u5740\u7684\u65b9\u5f0f\uff0c\u5c06\u6709\u52a9\u4e8e\u51cf\u7f13\u53ef\u7528\u7684IP\u5730\u5740\u7a7a\u95f4\u7684\u67af\u7aed\u3002<\/p>\n<p>NAT\u4e0d\u4ec5\u80fd\u89e3\u51b3\u4e86lP\u5730\u5740\u4e0d\u8db3\u4e0e\u5171\u4eab\u4e0a\u7f51\u7684\u95ee\u9898\uff0c\u800c\u4e14\u8fd8\u80fd\u591f\u6709\u6548\u5730\u907f\u514d\u6765\u81ea\u7f51\u7edc\u5916\u90e8\u7684\u653b\u51fb\uff0c\u9690\u85cf\u5e76\u4fdd\u62a4\u7f51\u7edc\u5185\u90e8\u7684\u8ba1\u7b97\u673a\u3002<\/p>\n<p>\u591a\u8def\u7531\u5668\u53ef\u5b8c\u6210NAT\u529f\u80fd\u3002<\/p>\n<p>NAT\u7684\u5b9e\u73b0\u65b9\u5f0f\uff1a<\/p>\n<p><strong>\u9759\u6001\u8f6c\u6362<\/strong>\u662f\u6307\u5c06\u5185\u90e8\u7f51\u7edc\u7684\u79c1\u6709IP\u5730\u5740\u8f6c\u6362\u4e3a\u516c\u6709IP\u5730\u5740\uff0cIP\u5730\u5740\u5bf9\u662f\u4e00\u5bf9\u4e00\u3002<\/p>\n<p><strong>\u52a8\u6001\u8f6c\u6362<\/strong>\u662f\u6307\u5c06\u5185\u90e8\u7f51\u7edc\u7684\u79c1\u6709IP\u5730\u5740\u8f6c\u6362\u4e3a\u516c\u7528IP\u5730\u5740\u65f6\uff0cIP\u5730\u5740\u662f\u4e0d\u786e\u5b9a\u7684\uff0c\u662f\u968f\u673a\u7684\u3002<\/p>\n<p><strong>\u7aef\u53e3\u591a\u8def\u590d\u7528<\/strong>\uff08Port address Translation,PAT)\uff0c\u5185\u90e8\u7f51\u7edc\u7684\u6240\u6709\u4e3b\u673a\u5747\u53ef\u5171\u4eab\u4e00\u4e2a\u5408\u6cd5\u5916\u90e8IP\u5730\u5740\u5b9e\u73b0\u5bf9Internet\u7684\u8bbf\u95ee\uff0c\u4ece\u800c\u53ef\u4ee5\u6700\u5927\u9650\u5ea6\u5730\u8282\u7ea6IP\u5730\u5740\u8d44\u6e90\u3002\u540c\u65f6\u53c8\u53ef\u9690\u85cf\u7f51\u7edc\u5185\u90e8\u7684\u6240\u6709\u4e3b\u673a\uff0c\u6709\u6548\u907f\u514d\u6765\u81eainternet\u7684\u653b\u51fb\u3002\u56e0\u6b64\uff0c\u76ee\u524d\u7f51\u7edc\u4e2d\u5e94\u7528\u6700\u591a\u7684\u5c31\u662f\u7aef\u53e3\u591a\u8def\u590d\u7528\u65b9\u5f0f\u3002<\/p>\n<p><strong>\u5e94\u7528\u7a0b\u5e8f\u7ea7\u7f51\u5173\u6280\u672f<\/strong>\uff08Application Level Gateway\uff09ALG\uff1a\u4f20\u7edf\u7684NAT\u6280\u672f\u53ea\u5bf9IP\u5c42\u548c\u4f20\u8f93\u5c42\u5934\u90e8\u8fdb\u884c\u8f6c\u6362\u5904\u7406\uff0cALG\u5b83\u80fd\u5bf9\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u5728\u901a\u4fe1\u65f6\u6240\u5305\u542b\u7684\u5730\u5740\u4fe1\u606f\u4e5f\u8fdb\u884c\u76f8\u5e94\u7684NAT\u8f6c\u6362\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903180507983-878090856.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903180820046-1185506268.png\" alt=\"\" \/><\/p>\n<h2><a name=\"t4\"><\/a>1.4\u3001Proxy<\/h2>\n<p>Proxy\u5373\u4ee3\u7406\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u8ba1\u7b97\u673a\u9886\u57df\uff0c\u4e3b\u8981\u5206\u4e3a\u6b63\u5411\u4ee3\u7406\u4e0e\u53cd\u5411\u4ee3\u7406\uff1a<\/p>\n<h3><a name=\"t5\"><\/a>1.4.1\u3001\u6b63\u5411\u4ee3\u7406<\/h3>\n<p>\u6bd4\u5982X\u82b1\u5e97\u4ee3A,B,C,D,E\u4e94\u4f4d\u7537\u751f\u5411Candy\u5973\u751f\u9001\u533f\u540d\u7684\u751f\u65e5\u9c9c\u82b1\uff0c\u8fd9\u91cc\u7684X\u82b1\u5e97\u5c31\u662f5\u4f4d\u987e\u5ba2\u7684\u4ee3\u7406\uff0c\u82b1\u5e97\u4ee3\u7406\u7684\u662f\u5ba2\u6237\uff0c\u9690\u85cf\u7684\u662f\u5ba2\u6237\u3002\u8fd9\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684\u4ee3\u7406\u3002<\/p>\n<p>\u6b63\u5411\u4ee3\u7406\u9690\u85cf\u4e86\u771f\u5b9e\u7684\u8bf7\u6c42\u5ba2\u6237\u7aef\u3002\u670d\u52a1\u7aef\u4e0d\u77e5\u9053\u771f\u5b9e\u7684\u5ba2\u6237\u7aef\u662f\u8c01\uff0c\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684\u670d\u52a1\u90fd\u88ab\u4ee3\u7406\u670d\u52a1\u5668\u4ee3\u66ff\u6765\u8bf7\u6c42\uff0c\u67d0\u4e9b\u79d1\u5b66\u4e0a\u7f51\u5de5\u5177\u626e\u6f14\u7684\u5c31\u662f\u5178\u578b\u7684\u6b63\u5411\u4ee3\u7406\u89d2\u8272\u3002\u7528\u6d4f\u89c8\u5668\u8bbf\u95eehttp:\/\/www.google.com\u65f6\u88ab\u5899\u4e86\uff0c\u4e8e\u662f\u4f60\u53ef\u4ee5\u5728\u56fd\u5916\u642d\u5efa\u4e00\u53f0\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u8ba9\u4ee3\u7406\u5e2e\u6211\u53bb\u8bf7\u6c42google.com\uff0c\u4ee3\u7406\u628a\u8bf7\u6c42\u8fd4\u56de\u7684\u76f8\u5e94\u7ed3\u6784\u518d\u8fd4\u56de\u7ed9\u6211\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903203834015-540568079.png\" alt=\"\" \/><\/p>\n<p>\u5f53\u591a\u4e2a\u5ba2\u6237\u7aef\u8bbf\u95ee\u670d\u52a1\u5668\u65f6\u670d\u52a1\u5668\u4e0d\u77e5\u9053\u771f\u6b63\u8bbf\u95ee\u81ea\u5df1\u7684\u5ba2\u6237\u7aef\u662f\u90a3\u4e00\u53f0\u3002\u6b63\u5411\u4ee3\u7406\u4e2d,proxy\u548cclient\u540c\u5c5e\u4e00\u4e2aLAN,\u5bf9server\u900f\u660e;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903203855702-1545660519.png\" alt=\"\" \/><\/p>\n<h3><a name=\"t6\"><\/a>1.4.2\u3001\u53cd\u5411\u4ee3\u7406<\/h3>\n<p>\u62e8\u625310086\u5ba2\u670d\u7535\u8bdd\uff0c\u63a5\u7ebf\u5458\u53ef\u80fd\u6709\u5f88\u591a\u4e2a\uff0c\u8c03\u5ea6\u5668\u4f1a\u667a\u80fd\u7684\u5206\u914d\u4e00\u4e2a\u63a5\u7ebf\u5458\u4e0e\u4f60\u901a\u8bdd\u3002\u8fd9\u91cc\u7684\u8c03\u5ea6\u5668\u5c31\u662f\u4e00\u4e2a\u4ee3\u7406\uff0c\u53ea\u4e0d\u8fc7\u4ed6\u4ee3\u7406\u7684\u662f\u63a5\u7ebf\u5458\uff0c\u5ba2\u6237\u7aef\u4e0d\u80fd\u786e\u5b9a\u771f\u6b63\u4e0e\u81ea\u5df1\u901a\u8bdd\u7684\u4eba\uff0c\u9690\u85cf\u4e0e\u4fdd\u62a4\u7684\u662f\u76ee\u6807\u5bf9\u8c61\u3002<\/p>\n<p>\u53cd\u5411\u4ee3\u7406\u9690\u85cf\u4e86\u771f\u5b9e\u7684\u670d\u52a1\u7aef\uff0c\u5f53\u6211\u4eec\u8bf7\u6c42 ww.baidu.com \u7684\u65f6\u5019\uff0c\u5c31\u50cf\u62e8\u625310086\u4e00\u6837\uff0c\u80cc\u540e\u53ef\u80fd\u6709\u6210\u5343\u4e0a\u4e07\u53f0\u670d\u52a1\u5668\u4e3a\u6211\u4eec\u670d\u52a1\uff0c\u4f46\u5177\u4f53\u662f\u54ea\u4e00\u53f0\uff0c\u4f60\u4e0d\u77e5\u9053\uff0c\u4e5f\u4e0d\u9700\u8981\u77e5\u9053\uff0c\u4f60\u53ea\u9700\u8981\u77e5\u9053\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\u662f\u8c01\u5c31\u597d\u4e86\uff0cww.baidu.com \u5c31\u662f\u6211\u4eec\u7684\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\u4f1a\u5e2e\u6211\u4eec\u628a\u8bf7\u6c42\u8f6c\u53d1\u5230\u771f\u5b9e\u7684\u670d\u52a1\u5668\u90a3\u91cc\u53bb\u3002Nginx\u5c31\u662f\u6027\u80fd\u975e\u5e38\u597d\u7684\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u7528\u6765\u505a\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903215407530-525466235.png\" alt=\"\" \/><\/p>\n<p>\u53cd\u5411\u4ee3\u7406\u4e2d,proxy\u548cserver\u540c\u5c5e\u4e00\u4e2aLAN,\u5bf9client\u900f\u660e\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903215437624-924164745.png\" alt=\"\" \/><\/p>\n<p><a href=\"https:\/\/www.zhihu.com\/question\/24723688\" target=\"_blank\" rel=\"nofollow noopener\">\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u4ee3\u7406\u5185\u5bb9\u8bf7\u70b9\u51fb\u8fd9\u91cc<\/a>\u3002<\/p>\n<h2><a name=\"t7\"><\/a>1.5\u3001DDNS<\/h2>\n<p>DDNS\u5373\u52a8\u6001\u57df\u540d\u89e3\u6790\uff0c\u662f\u5c06\u7528\u6237\u7684\u52a8\u6001IP\u5730\u5740\u6620\u5c04\u5230\u4e00\u4e2a\u56fa\u5b9a\u7684\u57df\u540d\u89e3\u6790\u670d\u52a1\u4e0a\uff0c\u7528\u6237\u6bcf\u6b21\u8fde\u63a5\u7f51\u7edc\u7684\u65f6\u5019\uff0c\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5c31\u4f1a\u901a\u8fc7\u4fe1\u606f\u4f20\u9012\u628a\u8be5\u4e3b\u673a\u7684\u52a8\u6001IP\u5730\u5740\u4f20\u9001\u7ed9\u4f4d\u4e8e\u670d\u52a1\u5546\u4e3b\u673a\u4e0a\u7684\u670d\u52a1\u5668\u7a0b\u5e8f\uff0c\u670d\u52a1\u7a0b\u5e8f\u8d1f\u8d23\u63d0\u4f9bDNS\u670d\u52a1\u5e76\u5b9e\u73b0\u52a8\u6001\u57df\u540d\u89e3\u6790\u3002\u5c31\u662f\u8bf4DDNS\u6355\u83b7\u7528\u6237\u6bcf\u6b21\u53d8\u5316\u7684IP\u5730\u5740\uff0c\u7136\u540e\u5c06\u5176\u4e0e\u57df\u540d\u76f8\u5bf9\u5e94\uff0c\u8fd9\u6837\u57df\u540d\u5c31\u53ef\u4ee5\u59cb\u7ec8\u89e3\u6790\u5230\u975e\u56fa\u5b9aIP\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u4e92\u8054\u7f51\u7528\u6237\u901a\u8fc7\u672c\u5730\u7684\u57df\u540d\u670d\u52a1\u5668\u83b7\u5f97\u7f51\u7ad9\u57df\u540d\u7684IP\u5730\u5740\uff0c\u4ece\u800c\u53ef\u4ee5\u8bbf\u95ee\u7f51\u7ad9\u7684\u670d\u52a1\u3002<\/p>\n<h2><a name=\"t8\"><\/a>1.6\u3001\u4e3a\u4ec0\u4e48\u9700\u8981\u5185\u7f51\u7a7f\u900f<\/h2>\n<p>\u5f53\u5185\u7f51\u4e2d\u7684\u4e3b\u673a\u6ca1\u6709\u9759\u6001IP\u5730\u5740\u8981\u88ab\u5916\u7f51\u7a33\u5b9a\u8bbf\u95ee\u65f6\u53ef\u4ee5\u4f7f\u7528\u5185\u7f51\u7a7f\u900f<\/p>\n<p>\u5728\u4e92\u8054\u7f51\u4e2d\u552f\u4e00\u5b9a\u4f4d\u4e00\u53f0\u4e3b\u673a\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u516c\u7f51\u7684IP\u5730\u5740\uff0c\u4f46\u56fa\u5b9aIP\u662f\u4e00\u79cd\u975e\u5e38\u7a00\u7f3a\u7684\u8d44\u6e90\uff0c\u4e0d\u53ef\u80fd\u7ed9\u6bcf\u4e2a\u516c\u53f8\u90fd\u5206\u914d\u4e00\u4e2a\uff0c\u4e14\u8bb8\u591a\u4e2d\u5c0f\u516c\u53f8\u4e0d\u613f\u610f\u4e3a\u9ad8\u6602\u7684\u8d39\u7528\u4e70\u5355\uff0c\u591a\u6570\u516c\u53f8\u76f4\u63a5\u6216\u95f4\u63a5\u7684\u62e8\u53f7\u4e0a\u7f51\uff0c\u7535\u4fe1\u90e8\u95e8\u4f1a\u7ed9\u63a5\u5165\u7f51\u7edc\u7684\u7528\u6237\u5206\u914dIP\u5730\u5740\uff0c\u4ee5\u524d\u4e0a\u7f51\u7528\u6237\u5c11\u7684\u65f6\u5019\u57fa\u672c\u5206\u914d\u7684\u90fd\u662f\u4e34\u65f6\u7684\u9759\u6001IP\u5730\u5740\uff0c\u79df\u7ea6\u8fc7\u4e86\u4e4b\u540e\u53ef\u80fd\u4f1a\u66f4\u6362\u6210\u53e6\u4e00\u4e2aIP\u5730\u5740\uff0c\u8fd9\u6837\u5916\u7f51\u8bbf\u95ee\u5c31\u4e0d\u7a33\u5b9a\uff0c\u56e0\u4e3a\u5185\u7f51\u7684\u9759\u6001IP\u5730\u5740\u4e00\u76f4\u53d8\u5316\uff0c\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u53ef\u4ee5\u4f7f\u7528\u52a8\u6001\u57df\u540d\u89e3\u6790\u7684\u529e\u6cd5\u53d8\u6362\u57df\u540d\u6307\u5411\u7684\u9759\u6001IP\u5730\u5740\u3002\u4f46\u662f\u73b0\u5728\u8d8a\u6765\u8d8a\u591a\u7684\u4e0a\u7f51\u7528\u6237\u4f7f\u5f97\u4e34\u65f6\u5206\u914d\u7684\u9759\u6001IP\u5730\u5740\u4e5f\u4e0d\u591f\u7528\u4e86\uff0c\u7535\u4fe1\u90e8\u95e8\u5f00\u59cb\u5206\u914d\u4e00\u4e9b\u865a\u62df\u7684\u9759\u6001IP\u5730\u5740\uff0c\u8fd9\u4e9bIP\u662f\u516c\u7f51\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95ee\u7684\uff0c\u5982\u4ee5125\u5f00\u5934\u7684\u4e00\u4e9bIP\u5730\u5740\uff0c\u4ee5\u524d\u5355\u7eaf\u7684\u52a8\u6001\u57df\u540d\u89e3\u6790\u5c31\u4e0d\u597d\u7528\u4e86\u3002<\/p>\n<h2><a name=\"t9\"><\/a>1.7\u3001\u5185\u7f51\u7a7f\u900f\u7684\u5b9a\u4e49\u4e0e\u969c\u788d<\/h2>\n<p>\u7b80\u5355\u6765\u8bf4\u5b9e\u73b0\u4e0d\u540c\u5c40\u57df\u7f51\u5185\u7684\u4e3b\u673a\u4e4b\u95f4\u901a\u8fc7\u4e92\u8054\u7f51\u8fdb\u884c\u901a\u4fe1\u7684\u6280\u672f\u53eb\u5185\u7f51\u7a7f\u900f\u3002<\/p>\n<p><strong>\u969c\u788d\u4e00<\/strong>\uff1a\u4f4d\u4e8e\u5c40\u57df\u7f51\u5185\u7684\u4e3b\u673a\u6709\u4e24\u5957 IP \u5730\u5740\uff0c\u4e00\u5957\u662f\u5c40\u57df\u7f51\u5185\u7684 IP \u5730\u5740\uff0c\u901a\u5e38\u662f\u52a8\u6001\u5206\u914d\u7684\uff0c\u4ec5\u4f9b\u5c40\u57df\u7f51\u5185\u7684\u4e3b\u673a\u95f4\u901a\u4fe1\u4f7f\u7528\uff1b\u4e00\u5957\u662f\u7ecf\u8fc7\u7f51\u5173\u8f6c\u6362\u540e\u7684\u5916\u7f51 IP \u5730\u5740\uff0c\u7528\u4e8e\u4e0e\u5916\u7f51\u7a0b\u5e8f\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903222716265-734414443.png\" alt=\"\" \/><\/p>\n<p><strong>\u969c\u788d\u4e8c\uff1a<\/strong>\u4f4d\u4e8e\u4e0d\u540c\u5c40\u57df\u7f51\u5185\u7684\u4e24\u53f0\u4e3b\u673a\uff0c\u5373\u4f7f\u662f\u77e5\u9053\u4e86\u5bf9\u65b9\u7684 IP \u5730\u5740\u548c\u7aef\u53e3\u53f7\uff0c\u201c\u4e00\u53a2\u60c5\u613f\u201d\u5730\u5c06\u6570\u636e\u5305\u53d1\u9001\u8fc7\u53bb\uff0c\u5bf9\u65b9\u4e5f\u662f\u63a5\u6536\u4e0d\u5230\u7684\u3002<\/p>\n<p>\u56e0\u4e3a\u51fa\u4e8e\u5b89\u5168\u8d77\u89c1\uff0c\u9664\u975e\u662f\u4e3b\u673a\u4e3b\u52a8\u5411\u5bf9\u65b9\u53d1\u51fa\u4e86\u8fde\u63a5\u8bf7\u6c42\uff08\u8fd9\u65f6\u4f1a\u5728\u8be5\u4e3b\u673a\u7684\u6570\u636e\u7ed3\u6784\u4e2d\u7559\u4e0b\u4e00\u6761\u8bb0\u5f55\uff09\uff0c\u5426\u5219\uff0c\u5f53\u4e3b\u673a\u63a5\u6536\u5230\u6570\u636e\u5305\u65f6\uff0c\u5982\u679c\u5728\u5176\u6570\u636e\u7ed3\u6784\u4e2d\u67e5\u8be2\u4e0d\u5230\u5bf9\u5e94\u7684\u8bb0\u5f55\uff0c\u90a3\u4e9b\u4e0d\u8bf7\u81ea\u6765\u7684\u6570\u636e\u5305\u5c06\u4f1a\u88ab\u4e22\u5f03\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903222946327-630478233.png\" alt=\"\" \/><\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a\u8981\u60f3\u89e3\u51b3\u4ee5\u4e0a\u4e24\u5927\u969c\u788d\uff0c\u6211\u4eec\u9700\u8981\u501f\u52a9\u4e00\u53f0\u5177\u6709\u516c\u7f51 IP \u7684\u670d\u52a1\u5668\u8fdb\u884c\u6865\u63a5\u3002<\/p>\n<h1><a name=\"t10\"><\/a>\u4e8c\u3001\u5e38\u89c1\u7684\u5185\u7f51\u7a7f\u900f\u4ea7\u54c1<\/h1>\n<h2><a name=\"t11\"><\/a>2.1\u3001\u82b1\u751f\u58f3<\/h2>\n<p>\u82b1\u751f\u58f3\u65e2\u662f\u5185\u7f51\u7a7f\u900f\u8f6f\u4ef6\u3001\u5185\u7f51\u6620\u5c04\u8f6f\u4ef6,\u4e5f\u662f\u7aef\u53e3\u6620\u5c04\u8f6f\u4ef6\u3002\u89c4\u6a21\u6700\u5927\uff0c\u8f83\u6b63\u89c4\uff0c\u5b8c\u5584\u3002<\/p>\n<p>\u6536\u8d39\u9ad8\uff0c\u4f7f\u7528\u7b80\u5355<\/p>\n<p>\u5b98\u7f51\uff1ahttp:\/\/www.oray.com\/<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903223553296-127372763.png\" alt=\"\" \/><\/p>\n<h2><a name=\"t12\"><\/a>2.2\u3001Nat123<\/h2>\n<p>nat123\u662f\u5185\u7f51\u7aef\u53e3\u6620\u5c04\u4e0e\u52a8\u6001\u57df\u540d\u89e3\u6790\u8f6f\u4ef6\uff0c\u5728\u5185\u7f51\u542f\u52a8\u6620\u5c04\u540e\uff0c\u53ef\u5728\u5916\u7f51\u8bbf\u95ee\u8fde\u63a5\u5185\u7f51\u7f51\u7ad9\u7b49\u5e94\u7528\u3002\u6574\u4e2a\u7f51\u7ad9\u6211\u90fd\u6ca1\u6709\u627e\u5230\u5ba2\u670d\u7535\u8bdd\uff0c\u7f51\u53cb\u53d1\u4e86\u4e00\u4e9b\u53cd\u9762\u7684\u8bc4\u4ef7<\/p>\n<p>\u6536\u8d39\uff0c\u4f7f\u7528\u7b80\u5355<\/p>\n<p>\u5b98\u7f51\uff1a<a href=\"http:\/\/www.nat123.com\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/www.nat123.com<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903224544358-530495055.png\" alt=\"\" \/><\/p>\n<h2><a name=\"t13\"><\/a>2.3\u3001NATAPP<\/h2>\n<p>NATAPP\u57fa\u4e8engrok\u7684\u56fd\u5185\u5185\u7f51\u7a7f\u900f\u670d\u52a1\uff0c\u514d\u8d39\u7248\u4f1a\u5f3a\u5236\u66f4\u6362\u57df\u540d\uff0c\u4e34\u65f6\u7528\u4e00\u4e0b\u53ef\u4ee5<\/p>\n<p>\u6536\u8d39\uff0c\u4f7f\u7528\u7b80\u5355<\/p>\n<p>\u5b98\u7f51\uff1a<a href=\"https:\/\/natapp.cn\/\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/natapp.cn\/<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903230700515-51395586.png\" alt=\"\" \/><\/p>\n<h2><a name=\"t14\"><\/a>2.4\u3001frp\u4e0e\u5176\u5b83<\/h2>\n<p>frp \u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u53cd\u5411\u4ee3\u7406\u5e94\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u8f7b\u677e\u5730\u8fdb\u884c\u5185\u7f51\u7a7f\u900f\uff0c\u5bf9\u5916\u7f51\u63d0\u4f9b\u670d\u52a1\uff0c\u652f\u6301 tcp, http, https \u7b49\u534f\u8bae\u7c7b\u578b\uff0c\u5e76\u4e14 web \u670d\u52a1\u652f\u6301\u6839\u636e\u57df\u540d\u8fdb\u884c\u8def\u7531\u8f6c\u53d1\u3002<\/p>\n<p>\u5f00\u6e90\u514d\u8d39<\/p>\n<p>\u4f7f\u7528\u76f8\u5bf9\u590d\u6742\uff0c\u9700\u8981\u4ee3\u7406\u670d\u52a1\u5668\u652f\u6301<\/p>\n<p>\u5b98\u7f51\uff1a<a href=\"https:\/\/github.com\/fatedier\/frp\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/fatedier\/frp<\/a><\/p>\n<p>\u6587\u6863\uff1a<a href=\"http:\/\/www.cnblogs.com\/%E6%9F%A5%E7%9C%8B%E5%B8%AE%E5%8A%A9%E6%96%87%E6%A1%A3\" target=\"_blank\" rel=\"nofollow noopener\">\u67e5\u770b\u5e2e\u52a9\u6587\u6863<\/a>\uff0c<a href=\"http:\/\/www.jianshu.com\/p\/e8e26bcc6fe6\" target=\"_blank\" rel=\"nofollow noopener\">\u7b80\u4e66\u793a\u4f8b<\/a><\/p>\n<p>\u5229\u7528\u5904\u4e8e\u5185\u7f51\u6216\u9632\u706b\u5899\u540e\u7684\u673a\u5668\uff0c\u5bf9\u5916\u7f51\u73af\u5883\u63d0\u4f9b http \u6216 https \u670d\u52a1\u3002<\/p>\n<p>\u5bf9\u4e8e http, https \u670d\u52a1\u652f\u6301\u57fa\u4e8e\u57df\u540d\u7684\u865a\u62df\u4e3b\u673a\uff0c\u652f\u6301\u81ea\u5b9a\u4e49\u57df\u540d\u7ed1\u5b9a\uff0c\u4f7f\u591a\u4e2a\u57df\u540d\u53ef\u4ee5\u5171\u7528\u4e00\u4e2a80\u7aef\u53e3\u3002<\/p>\n<p>\u5229\u7528\u5904\u4e8e\u5185\u7f51\u6216\u9632\u706b\u5899\u540e\u7684\u673a\u5668\uff0c\u5bf9\u5916\u7f51\u73af\u5883\u63d0\u4f9b tcp \u548c udp \u670d\u52a1\uff0c\u4f8b\u5982\u5728\u5bb6\u91cc\u901a\u8fc7 ssh \u8bbf\u95ee\u5904\u4e8e\u516c\u53f8\u5185\u7f51\u73af\u5883\u5185\u7684\u4e3b\u673a\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903230243390-1884154202.png\" alt=\"\" \/><\/p>\n<p>\u56e0\u4e3afrp \u4ecd\u7136\u5904\u4e8e\u524d\u671f\u5f00\u53d1\u9636\u6bb5\uff0c\u672a\u7ecf\u5145\u5206\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1\uff0c\u4e0d\u63a8\u8350\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u6240\u6709\u6211\u9009\u62e9\u4e86ngrok\uff0c\u8d44\u6599\u6bd4\u8f83\u591a\u3002<\/p>\n<p>\u8fd8\u6709\u5982\u5723\u5251\u5185\u7f51\u901a\u3001ngrok\uff08\u5f00\u6e90\u514d\u8d39\uff09\u3001<a href=\"https:\/\/post.smzdm.com\/p\/564494\/\" target=\"_blank\" rel=\"nofollow noopener\">\u66f4\u591a\u529e\u6cd5<\/a><\/p>\n<h1><a name=\"t15\"><\/a>\u4e09\u3001ngrok<\/h1>\n<p>ngrok\u662f\u4e00\u4e2a\u53cd\u5411\u4ee3\u7406\uff0c\u901a\u8fc7\u5728\u516c\u5171\u7684\u7aef\u70b9\u548c\u672c\u5730\u8fd0\u884c\u7684Web\u670d\u52a1\u5668\u4e4b\u95f4\u5efa\u7acb\u4e00\u4e2a\u5b89\u5168\u7684\u901a\u9053\u3002ngrok\u53ef\u6355\u83b7\u548c\u5206\u6790\u6240\u6709\u901a\u9053\u4e0a\u7684\u6d41\u91cf\uff0c\u4fbf\u4e8e\u540e\u671f\u5206\u6790\u4e0e\u54cd\u5e94\u3002<\/p>\n<p>\u5f00\u6e90\u514d\u8d39<\/p>\n<p>\u5b98\u7f51\uff1a<a href=\"https:\/\/ngrok.com\/\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/ngrok.com\/<\/a><\/p>\n<p>\u6e90\u7801\uff1a<a href=\"https:\/\/github.com\/inconshreveable\/ngrok\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/inconshreveable\/ngrok<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170903231759108-1604638644.png\" alt=\"\" \/><\/p>\n<p>ngrok1.x\u5f00\u6e90\uff0cngrok2.x\u4e0d\u5f00\u6e90<\/p>\n<p>ngrok\u4f7f\u7528go\u8bed\u8a00\u5f00\u53d1\uff0c\u6e90\u4ee3\u7801\u5206\u4e3a\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u7aef\u3002<\/p>\n<p>\u56fd\u5185\u514d\u8d39\u670d\u52a1\u5668\uff1a<a href=\"http:\/\/ngrok.ciqiuwl.cn\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/ngrok.ciqiuwl.cn\/<\/a>\uff0c\u66f4\u591a\u514d\u8d39\u670d\u52a1\u5668\u8bf7\u5927\u5bb6\u6316\u6398\uff0c\u8d44\u6e90\u5171\u4eab\uff0c\u6211\u968f\u65f6\u66f4\u65b0\uff1a\uff09<\/p>\n<p>\u5982\u679c\u6709\u670d\u52a1\u5668\uff0c\u4ec5\u5ba2\u6237\u7aef\u7684\u4f7f\u7528\u662f\u4e0d\u590d\u6742\u7684\uff0c\u4ee5\u4e0a\u9762\u7684\u514d\u8d39\u670d\u52a1\u5668\u4e3a\u793a\u4f8b\u5b8c\u6210\u5185\u7f51\u7a7f\u900f<\/p>\n<p>\u73b0\u5728\u5047\u5b9a\u6211\u7684\u672c\u5730\u5df2\u6210\u529f\u90e8\u7f72\u4e86\u4e00\u4e2a\u7f51\u7ad9\uff0c\u8bbf\u95ee\u5730\u5740\u4e3a127.0.0.1\uff0c\u60f3\u5185\u7f51\u7a7f\u900f\u540e\u88ab\u516c\u7f51\u4e0a\u7684\u7528\u6237\u8bbf\u95ee\uff0c\u4e00\u822c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p><strong>\u6b65\u9aa41\u3001\u4e0b\u8f7dwindows\u7248\u672c\u7684\u5ba2\u6237\u7aef\uff0c\u89e3\u538b\u3002\u4e00\u822c\u5728\u4e3a\u4f60\u63d0\u4f9b\u4ee3\u7406\u670d\u52a1\u5668\u7684\u7f51\u7ad9\u4e0a\u627e\u4f60\u8981\u4e0b\u8f7d\u7684\u5ba2\u6237\u7aef\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904074155741-1985350688.png\" alt=\"\" \/><\/p>\n<p><strong>\u6b65\u9aa42\u3001\u5728\u547d\u4ee4\uff08cmd\uff09\u884c\u4e0b\u8fdb\u5165\u5230ngrok\u5ba2\u6237\u7aef\u76ee\u5f55\u4e0b<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904074622538-2039616441.png\" alt=\"\" \/><\/p>\n<p><strong>\u6b65\u9aa43\u3001\u6267\u884c ngrok -config=ngrok.cfg -subdomain xxx 80 \/\/(xxx \u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u57df\u540d\u524d\u7f00)\uff0c\u5efa\u8bae\u6279\u5904\u7406<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904074833194-727903866.png\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u8fde\u63a5\u6210\u529f\uff0c\u4f1a\u63d0\u793a\u5982\u4e0b\u4fe1\u606f\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904075020679-5581075.png\" alt=\"\" \/><\/p>\n<p>\u8fd9\u4e00\u6b65\u5982\u679c\u4f60\u8ba4\u4e3a\u592a\u9ebb\u70e6\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u76ee\u5f55\u4e0b\u7684start.bat\u6279\u5904\u7406\u6587\u4ef6\u5c31\u4e0d\u7528\u8fdbDOS\u73af\u5883\u4e86\u3002\u8fd0\u884cstart.bat\u76f4\u63a5\u8df3\u8fc72\uff0c3\u6b65<\/p>\n<p><strong>\u6b65\u9aa44\u3001\u5982\u679c\u5f00\u542f\u6210\u529f \u4f60\u5c31\u53ef\u4ee5\u4f7f\u7528 xxx.ngrok.xiaomiqiu.cn \u6765\u8bbf\u95ee\u4f60\u672c\u673a\u7684 127.0.0.1:80 \u7684\u670d\u52a1\u4e86\uff0c\u5f53\u7136\u4f60\u5fc5\u987b\u786e\u5b9a\u7684\u662f\u4f60\u672c\u673a\u7684Web\u662f\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\u7684\u3002<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904075516819-714643885.png\" alt=\"\" \/><\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u81ea\u5df1\u6709\u9876\u7ea7\u57df\u540d\uff0c\u60f3\u901a\u8fc7\u81ea\u5df1\u7684\u57df\u540d\u6765\u8bbf\u95ee\u672c\u673a\u7684\u9879\u76ee\uff0c\u90a3\u4e48\u5148\u5c06\u81ea\u5df1\u7684\u9876\u7ea7\u57df\u540d\u89e3\u6790\u5230120.25.161.137(\u57df\u540d\u9700\u8981\u5df2\u5907\u6848\u54e6\uff0c80\u7aef\u53e3\u5fc5\u987b\u5907\u6848)\uff0c\u7136\u540e\u6267\u884c ngrok -config=ngrok.cfg -hostname xxx.xxx.xxx 80 \/\/(xxx.xxx.xxx\u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u9876\u7ea7\u57df\u540d)<\/p>\n<h1><a name=\"t16\"><\/a>\u56db\u3001ubuntu\u4e0b\u751f\u6210ngrok\u670d\u52a1\u5668\u4e3b\u7a0b\u5e8f<\/h1>\n<h2><a name=\"t17\"><\/a>4.1\u3001\u6b65\u9aa4\u4e0e\u5148\u51b3\u6761\u4ef6<\/h2>\n<p>\u5982\u679c\u4f60\u53ea\u662f\u4e34\u65f6\u7a7f\u900f\u6216\u8c03\u8bd5\u7528\uff0c\u5230\u7b2c\u4e09\u6b65\u57fa\u672c\u5c31\u53ef\u4ee5\u4e86\uff0c\u4f46\u5982\u679c\u60f3\u4f5c\u4e3a\u7a33\u5b9a\u7684\u5546\u4e1a\u670d\u52a1\uff0c\u7528\u522b\u4eba\u7684\u670d\u52a1\u5668\u8fd8\u662f\u53d7\u5236\u4e8e\u4eba\uff0c\u8fd9\u91cc\u6211\u4eec\u51c6\u5907\u642d\u5efa\u81ea\u5df1\u7684ngrok\u670d\u52a1\u5668\u3002\u5927\u81f4\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904091831007-845981599.png\" alt=\"\" \/><\/p>\n<p>ngrok\u670d\u52a1\u5668\u53ef\u4ee5\u662f\u591a\u79cd\u5e73\u53f0\uff0c\u5982windows\u3001Linux\uff08CentOS\u3001Debian\u3001Ubuntu\u7b49\uff09\u3001Mac OS\u7b49\u3002<\/p>\n<p><strong>\u7f16\u8bd1\u6e90\u4ee3\u7801\u751f\u6210\u5e94\u7528\u5f3a\u70c8\u5efa\u8bae\u5927\u5bb6\u4f7f\u7528linux\u73af\u5883\uff0cwindows\u80af\u5b9a\u53ef\u4ee5\u6210\u529f\uff0c\u4f46\u975e\u5e38\u9ebb\u70e6\uff0c\u6211\u5728windows\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u515c\u4e86\u4e00\u4e2a\u5927\u5708\u5708\u3002<\/strong><\/p>\n<p><strong>\u5148\u51b3\u6761\u4ef6\uff1a<\/strong><\/p>\n<p>a)\u3001\u60a8\u6709\u4e00\u53f0\u516c\u7f51\u4e0a\u7684\u670d\u52a1\u5668\uff0c\u5982\u963f\u91cc\u4e91\u7684ECS<\/p>\n<p>b)\u3001\u60a8\u6709\u4e00\u4e2a\u57df\u540d\uff0c\u6700\u597dICP\u5907\u6848\u6210\u529f\uff0c\u4e0d\u713680\u7aef\u53e3\u6ca1\u6709\u529e\u6cd5\u4f7f\u7528\uff0c\u4e0d\u8fc7\u50cf\u5fae\u4fe1\u5f00\u53d1\u662f\u4e0d\u4f7f\u752880\u7aef\u53e3\u7684\uff0c\u53ef\u4ee5\u7528nginx\u4ee3\u7406\u8f6c\u6362\u3002<\/p>\n<h2><a name=\"t18\"><\/a>4.2\u3001\u5b89\u88c5ubuntu\u64cd\u4f5c\u7cfb\u7edf<\/h2>\n<p>\u5728linux\u73af\u5883\u4e0b\u7f16\u8bd1ngrok\u7684\u6e90\u4ee3\u7801\u6bd4windows\u4e0b \u65b9\u4fbf\u5f88\u591a\uff0c\u8fd9\u91cc\u6211\u4eec\u9009\u62e9\u4f7f\u7528ubuntu\uff0c\u83b7\u5f97ubuntu\u7684\u65b9\u6cd5\u6709\u5982\u4e0b\u51e0\u79cd\uff1a<\/p>\n<p>1\uff09\u3001\u5168\u65b0\u5b89\u88c5ubuntu\u7cfb\u7edf<\/p>\n<p>2\uff09\u3001\u7533\u8bf7VPS\u670d\u52a1\u5668\uff0c \u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u3001\u534e\u4e3a\u4e91\u3001\u767e\u5ea6\u4e91\u3001\u65b0\u6d6a\u4e91\u7b49\uff0c\u4ec5\u7f16\u8bd1\u4e00\u4e0b\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u9519<\/p>\n<p>3\uff09\u3001\u5728\u865a\u62df\u673a\u4e2d\u5b89\u88c5ubuntu\u7cfb\u7edf<\/p>\n<p>\u7efc\u5408\u8003\u8651\u6211\u9009\u62e9\u4e86\u5728\u865a\u62df\u673a\u4e2d\u5b89\u88c5ubuntu\u64cd\u4f5c\u7cfb\u7edf<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170901231607218-263480294.png\" alt=\"\" \/><\/p>\n<h3><a name=\"t19\"><\/a>4.2.1\u3001\u5b89\u88c5VMware\u865a\u62df\u673a<\/h3>\n<p>VMware Workstation\u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u865a\u62df\u673a\u8f6f\u4ef6\uff0c\u5728\u4e0d\u5f71\u54cd\u672c\u673a\u64cd\u4f5c\u7cfb\u7edf\u7684\u60c5\u51b5\u4e0b\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u865a\u62df\u673a\u4e2d\u540c\u65f6\u8fd0\u884c\u4e0d\u540c\u7248\u672c\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u7528\u4e8e\u5f00\u53d1\u3001\u6d4b\u8bd5\u4ee5\u53ca\u90e8\u7f72\u5de5\u4f5c\u3002<\/p>\n<p>VMware Workstation 12 pro\u4e0b\u8f7d\uff1a<a href=\"https:\/\/download3.vmware.com\/software\/wkst\/file\/VMware-workstation-full-12.1.0-3272444.exe\" target=\"_blank\" rel=\"nofollow noopener\">VMware-workstation-full-12.1.0-3272444.exe<\/a><\/p>\n<p>\u5e8f\u5217\u53f7\uff1a5A02H-AU243-TZJ49-GTC7K-3C61N\uff08\u5546\u4e1a\u5e94\u7528\u8bf7\u8d2d\u4e70\u6b63\u5f0f\u7248\u6743\uff0c\u8fd9\u91cc\u4ec5\u4e3a\u5b66\u4e60\u4f7f\u7528\uff09<\/p>\n<p>1\uff09\u3001\u53cc\u51fbVMware Workstation 12\u5b89\u88c5\u6587\u4ef6\uff0c\u6216\u8005\u53f3\u952e\u7ba1\u7406\u5458\u8eab\u4efd\u6253\u5f00\uff0c\u63d0\u793a\u662f\u5426\u5141\u8bb8\u66f4\u6539\uff0c\u70b9\u51fb\u662f\uff1b<\/p>\n<p>2\uff09\u3001\u6253\u5f00VMware\u5b89\u88c5\u5411\u5bfc\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65\uff1b<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2015.cnblogs.com\/blog\/665662\/201609\/665662-20160901095230340-1199843460.png\" alt=\"\u6280\u672f\u5206\u4eab\" \/><\/p>\n<p>3\uff09\u3001VMware Workstation 12\u6fc0\u6d3b\u6b65\u9aa4\uff1a<\/p>\n<p>\u65b9\u6cd5\u4e00\u3001\u9996\u6b21\u5f00\u542f\u76f4\u63a5\u8f93\u5165\u4e0a\u6587\u5bc6\u94a5\uff0c\u5373\u53ef\u6fc0\u6d3b\uff1b<br \/>\n\u65b9\u6cd5\u4e8c\u3001\u9996\u6b21\u5f00\u542f\u9009\u62e9\u8bd5\u7528\uff0c\u8fdb\u5165\u8bd5\u7528\u540e\u6309\u4e00\u4e0b\u6b65\u9aa4\u6fc0\u6d3b\uff1a<\/p>\n<p>a\u3001\u6253\u5f00\u865a\u62df\u673a\u4e3b\u754c\u9762\uff0c\u70b9\u51fb\u201c\u5e2e\u52a9\u201d\u2014\u201c\u8f93\u5165\u8bb8\u53ef\u8bc1\u5bc6\u94a5\u201d\uff1b<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2015.cnblogs.com\/blog\/665662\/201609\/665662-20160901095741496-122939039.png\" alt=\"\u6280\u672f\u5206\u4eab\" \/><\/p>\n<p>b\u3001\u5728\u5bc6\u94a5\u8f93\u5165\u6846\u8f93\u5165\u6c38\u4e45\u8bb8\u53ef\u8bc1\u5bc6\u94a55A02H-AU243-TZJ49-GTC7K-3C61N\uff0c\u786e\u5b9a\uff1b<a href=\"http:\/\/www.mamicode.com\/info-detail-1509515.html\" target=\"_blank\" rel=\"nofollow noopener\">\u66f4\u591a<\/a><\/p>\n<h3><a name=\"t20\"><\/a>4.2.2\u3001\u5b89\u88c5ubuntu\u5230\u865a\u62df\u673a<\/h3>\n<p><strong>1)\u3001\u4e0b\u8f7dubuntu\u64cd\u4f5c\u7cfb\u7edf\u955c\u50cf<\/strong><\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/www.ubuntu.com\/download\/desktop\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/www.ubuntu.com\/download\/desktop<\/a><\/p>\n<p>\u8fd9\u91cc\u6211\u4e0b\u8f7d\u7684\u662fubuntu-16.04.3-desktop-amd64.iso<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904095831304-2034050308.png\" alt=\"\" \/><\/p>\n<p><strong>2)\u3001\u5728VMware\u4e2d\u5b89\u88c5ubuntu<\/strong><\/p>\n<p>\u6253\u5f00VMware\u70b9\u51fb\u201c\u521b\u5efa\u65b0\u7684\u865a\u62df\u673a\u201d<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904100150288-1332147180.png\" alt=\"\" \/><\/p>\n<p>\u5411\u5bfc\u9009\u62e9\u81ea\u5b9a\u4e49<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/img-blog.csdn.net\/20160116162359619\" alt=\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7136\u540e\u4e0b\u4e00\u6b65\u518d\u4e0b\u4e00\u6b65\uff0c\u76f4\u5230\u8fd9\u91cc\uff0c\u7a0d\u540e\u518d\u5b89\u88c5\u7cfb\u7edf<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/img-blog.csdn.net\/20160116165229845\" alt=\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u540e\u9762\u8bbe\u7f6e\u5904\u7406\u5668\u548c\u5185\u5b58\u7684\uff0c\u7535\u8111\u914d\u7f6e\u597d\u7684\u53ef\u4ee5\u8bd5\u8bd5\uff0c\u5426\u5219\u91c7\u7528\u9ed8\u8ba4\u7684\uff0c\u535a\u4e3b\u8fd9\u91cc\u662f\u91c7\u7528\u9ed8\u8ba4\u7684\uff0c\u7136\u540e\u4e0b\u4e00\uff0c\u76f4\u5230\u8fd9\u91cc\uff0c\u9009\u62e9\u5c06\u865a\u62df\u673a\u5b58\u50a8\u4e3a\u5355\u4e2a\u78c1\u76d8\uff1a<\/p>\n<p><img decoding=\"async\" title=\"\" src=\"https:\/\/img-blog.csdn.net\/20160116170122312\" alt=\"\u8fd9\u91cc\u5199\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e2a\u4eba\u5efa\u8bae\u81f3\u5c1120G\u786c\u76d8\u7a7a\u95f4\uff0c\u5185\u5b58\u5efa\u8bae\u7ed91.5G\uff0c\u5f53\u7136\u4e5f\u8981\u770b\u7535\u8111\u672c\u8eab\u7684\u914d\u7f6e\uff0c1G\u7684\u5185\u5b58\u8dd1\u8d77\u6765\u6bd4\u8f83\u5361\u3002<\/p>\n<p>\u5176\u5b83\u7684\u6b65\u9aa4\u6bd4\u8f83\u7b80\u5355\uff0c\u66f4\u591a\u7ec6\u8282\u53ef\u4ee5\u53c2\u8003\u8fd9\u91cc\uff0c<a href=\"http:\/\/blog.csdn.net\/u013142781\/article\/details\/50529030\" target=\"_blank\" rel=\"nofollow noopener\">\u300aVMware Ubuntu\u5b89\u88c5\u8be6\u7ec6\u8fc7\u7a0b\u300b<\/a>\u3002<\/p>\n<h3><a name=\"t21\"><\/a>4.2.3\u3001\u914d\u7f6eubuntu\u7cfb\u7edf<\/h3>\n<p>\u5f53ubuntu\u7cfb\u7edf\u5b89\u88c5\u6210\u529f\u540e\uff0c\u5728\u865a\u62df\u673a\u4e2d\u53ef\u4ee5\u542f\u52a8ubuntu\u7cfb\u7edf\uff0c\u542f\u52a8\u540e\u7684\u7cfb\u7edf\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904101154476-1764294876.png\" alt=\"\" \/><\/p>\n<p>ubuntu\u7cfb\u7edf\u7684\u4f7f\u7528\u8fd8\u662f\u6709\u8bb8\u591a\u5185\u5bb9\u7684\uff0c\u8fd9\u91cc\u9700\u8981\u8bbe\u7f6e\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p><strong>a)\u3001\u8bbe\u7f6e\u4e0a\u7f51<\/strong><\/p>\n<p>\u5c31\u662f\u5728ubuntu\u4e2d\u53ef\u4ee5\u8bbf\u95ee\u5916\u7f51\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5f62\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904101320163-1606868137.png\" alt=\"\" \/><\/p>\n<p><strong>b)\u3001\u8bbe\u7f6e\u8bed\u8a00<\/strong><\/p>\n<p>\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u4e2d\u6587\u7248\u7684ubuntu\u8bed\u8a00\u73af\u5883<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904101834679-1277234633.png\" alt=\"\" \/><\/p>\n<p><strong>c)\u3001\u8bbe\u7f6e\u5c4f\u5e55\u5206\u8fa8\u7387<\/strong><\/p>\n<p>\u5982\u679c\u4e0d\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u5c4f\u5e55\u6bd4\u8f83\u5c0f<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904102149054-1857013152.png\" alt=\"\" \/><\/p>\n<p><strong>d)\u3001\u8bbe\u7f6e\u4ee5root\u8d85\u7ea7\u7ba1\u7406\u5458\u7684\u8eab\u4efd\u767b\u5f55<\/strong><\/p>\n<p>\u8bb8\u591a\u64cd\u4f5c\u8981\u6c42\u7ba1\u7406\u8eab\u4efd<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904102826538-1421210972.png\" alt=\"\" \/><\/p>\n<p><strong>e)\u3001\u5b89\u88c5VMware Tools\u5de5\u5177<\/strong><\/p>\n<p>\u53ea\u6709\u5728VMware\u865a\u62df\u673a\u4e2d\u5b89\u88c5\u597d\u4e86VMware Tools\uff0c\u624d\u80fd\u5b9e\u73b0\u4e3b\u673a\u4e0e\u865a\u62df\u673a\u4e4b\u95f4\u7684\u6587\u4ef6\u5171\u4eab\uff0c\u540c\u65f6\u53ef\u652f\u6301\u81ea\u7531\u62d6\u62fd\u7684\u529f\u80fd\uff0c\u9f20\u6807\u4e5f\u53ef\u5728\u865a\u62df\u673a\u4e0e\u4e3b\u673a\u4e4b\u95f4\u81ea\u7531\u79fb\u52a8\uff08\u4e0d\u7528\u518d\u6309ctrl+alt\uff09\uff0c\u4e14\u865a\u62df\u673a\u5c4f\u5e55\u4e5f\u53ef\u5b9e\u73b0\u5168\u5c4f\u5316\u3002<br \/>\nVMware Tools\u662fVMware\u865a\u62df\u673a\u4e2d\u81ea\u5e26\u7684\u4e00\u79cd\u589e\u5f3a\u5de5\u5177\uff0c\u76f8\u5f53\u4e8eVirtualBox\u4e2d\u7684\u589e\u5f3a\u529f\u80fd\uff08Sun VirtualBox Guest Additions\uff09\uff0c\u662fVMware\u63d0\u4f9b\u7684\u589e\u5f3a\u865a\u62df\u663e\u5361\u548c\u786c\u76d8\u6027\u80fd\u3001\u4ee5\u53ca\u540c\u6b65\u865a\u62df\u673a\u4e0e\u4e3b\u673a\u65f6\u949f\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904110228554-466046297.png\" alt=\"\" \/><\/p>\n<p>\u6ce8\u610f\u5982\u679c\u8fd9\u91cc\u662f\u7070\u8272\u7684\u9700\u8981\u60a8\u5c06linux.iso\u955c\u50cf\u52a0\u8f7d\u5230\u865a\u62df\u5149\u9a71\u4e2d\uff0c\u4e00\u822c\u5728VM\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u6709\uff0c\u5982\u679c\u6ca1\u6709\u60a8\u9700\u8981\u81ea\u884c\u4e0b\u8f7d\u3002<\/p>\n<p>\u8bf4\u660e\uff1aubuntu\u7684\u4f7f\u7528\u4e0d\u662f\u672c\u6587\u7684\u91cd\u70b9\uff0c\u76f8\u5173\u64cd\u4f5c\u8bf7\u5927\u5bb6\u81ea\u884c\u67e5\u627e\u3002<\/p>\n<h2><a name=\"t22\"><\/a>4.3\u3001\u751f\u6210ngrok\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f<\/h2>\n<h3><a name=\"t23\"><\/a>4.3.1. \u5bfc\u51fa\u6e90\u4ee3\u7801<\/h3>\n<p>ngrok\u7684\u6e90\u4ee3\u7801\u6258\u7ba1\u5728github\u4e0a\uff0c\u53ef\u4ee5\u5148\u5728ubuntu\u4e0b\u5b89\u88c5git\u518d\u5c06ngrok\u7684\u6e90\u4ee3\u7801\u514b\u9686\u5230\u672c\u5730\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904104430257-26581308.png\" alt=\"\" \/><\/p>\n<p>\u5176\u5b9e\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u5230\u672c\u5730\u540e\u89e3\u538b\uff0c\u8fd9\u91cc\u4f7f\u7528\u547d\u4ee4\u884c\u5b8c\u6210\u3002<\/p>\n<p>\u542f\u52a8ubuntu\uff0c\u5f00\u6253\u547d\u4ee4\u884c\uff08\u7ec8\u7aef\uff09\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904104218679-1537052551.png\" alt=\"\" \/><\/p>\n<p>\u4ee5root\u8eab\u4efd\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<div class=\"cnblogs_code\">\n<pre>mkdir ngrok #\u521b\u5efa\u540d\u79f0\u4e3angrok\u7684\u76ee\u5f55\r\n\r\napt-get update #\u66f4\u65b0\u5305\u7ba1\u7406\u5668\r\n\r\napt-get install git  #\u5b89\u88c5git\r\n\r\ngit clone https:\/\/github.com\/inconshreveable\/ngrok.git ngrok2 #\u5c06ngrok\u6e90\u4ee3\u7801\u514b\u9686\u56de\u672c\u5730<\/pre>\n<\/div>\n<p>\u6210\u529f\u6267\u884c\u540e\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904105615835-1335450212.png\" alt=\"\" \/><\/p>\n<p>\u5bfc\u51fa\u6210\u529f\u540e\u7684\u6e90\u4ee3\u7801\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904105847351-1780908089.png\" alt=\"\" \/><\/p>\n<p>PS. \u76f4\u63a5\u5728\u670d\u52a1\u5668\u4e0a\u4e0b\u8f7d\u7684\u8bdd\u5b9e\u5728\u592a\u6162\uff0c\u53ef\u4ee5\u5148\u5728\u672c\u5730\u4e0b\u8f7d\u597d\uff0c\u7136\u540e\u7528ftp\u653e\u5230\u670d\u52a1\u5668\u4e0a\u53bb\u76f4\u63a5\u7528\uff0c\u5982\u679c\u5b89\u88c5\u4e86VMware tools\u76f4\u63a5\u62d6\u8fdb\u53bb\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h3><a name=\"t24\"><\/a>4.3.2. \u5b89\u88c5Go\u8bed\u8a00\u5f00\u53d1\u73af\u5883<\/h3>\n<p>\u76f4\u63a5\u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\u6267\u884c\u5982\u4e0b\u6307\u4ee4\uff1a<\/p>\n<div class=\"cnblogs_code\">\n<pre>apt-get install golang #\u5b89\u88c5go\u8bed\u8a00<\/pre>\n<\/div>\n<p>\u6267\u884c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904110813679-2025712360.png\" alt=\"\" \/><\/p>\n<h3><a name=\"t25\"><\/a>4.3.3. \u66f4\u6539ngrok\u57df\u540d<\/h3>\n<p>\u5728\u81ea\u5df1\u7684\u57df\u540d\u7ba1\u7406\u4e2d\u6dfb\u52a0\u89e3\u6790A\u8bb0\u5f55\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904112044444-141101928.png\" alt=\"\" \/><\/p>\n<p>\u5c06*.ngrok\u4e0engrok\u90fd\u6307\u5411\u60a8\u7684\u4e3b\u673aIP\u3002<\/p>\n<p>\u9ed8\u8ba4\u7684\u57df\u540d\u662fngrok\u81ea\u5df1\u7684\uff0c\u8981\u66ff\u6362\u6210\u60a8\u81ea\u5df1\u7684\u57df\u540d<\/p>\n<div class=\"cnblogs_code\">\n<pre>export GOPATH=\/usr\/local\/ngrok\/  #\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0cGo\u8bed\u8a00\u7684\u5b89\u88c5\u4f4d\u7f6e\r\nexport NGROK_DOMAIN=\"ngrok.yourdomain.com\"  #\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0cngrok\u57df\u540d<\/pre>\n<\/div>\n<p>PS. ngrok\u540d\u79f0\u53ef\u4ee5\u4efb\u610f\uff0c\u63a8\u8350\u540d\u79f0\u4e3angrok\u6216\u8005tunnel<\/p>\n<h3><a name=\"t26\"><\/a>4.3.4. \u4e3a\u57df\u540d\u751f\u6210\u8bc1\u4e66<\/h3>\n<div class=\"cnblogs_code\">\n<pre>openssl genrsa -out rootCA.key 2048\r\nopenssl req -x509 -new -nodes -key rootCA.key -subj \"\/CN=$NGROK_DOMAIN\" -days 5000 -out rootCA.pem\r\nopenssl genrsa -out server.key 2048\r\nopenssl req -new -key server.key -subj \"\/CN=$NGROK_DOMAIN\" -out server.csr\r\nopenssl x509 -req -in server.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out server.crt -days 5000<\/pre>\n<\/div>\n<p>\u751f\u6210\u540e\u7684\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904112706007-1362500678.png\" alt=\"\" \/><\/p>\n<p>\u8bc1\u4e66\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904112841616-675146273.png\" alt=\"\" \/><\/p>\n<h3><a name=\"t27\"><\/a>4.3.5. \u62f7\u8d1d\u8bc1\u4e66\u5230\u6307\u5b9a\u4f4d\u7f6e<\/h3>\n<div class=\"cnblogs_code\">\n<pre>cp rootCA.pem assets\/client\/tls\/ngrokroot.crt  #\u590d\u5236rootCA.pem\u5230assets\/client\/tls\/\u5e76\u66f4\u540d\u4e3angrokroot.crt\r\ncp server.crt assets\/server\/tls\/snakeoil.crt #\u590d\u5236server.crt\u5230assets\/server\/tls\/\u5e76\u66f4\u540d\u4e3asnakeoil.crt\r\ncp server.key assets\/server\/tls\/snakeoil.key #\u590d\u5236server.key\u5230assets\/server\/tls\/\u5e76\u66f4\u540d\u4e3asnakeoil.key<\/pre>\n<\/div>\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904113404319-181716920.png\" alt=\"\" \/><\/p>\n<h3><a name=\"t28\"><\/a>4.3.6. \u7f16\u8bd1<\/h3>\n<p>\u7531\u4e8ego\u8bed\u8a00\u7684\u7279\u6027\uff0c\u5728\u7f16\u8bd1\u65f6\u76f4\u63a5\u751f\u6210\u673a\u5668\u7801\uff0c\u6240\u4ee5\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u5e76\u4e0d\u9700\u8981go\u7684\u73af\u5883\uff08\u975e\u6258\u7ba1\u5e94\u7528\uff09\u3002\u5728ngrok\u76ee\u5f55\u4e0b\uff0c\u8fd0\u884c\u4e00\u4e0b\u547d\u4ee4\u5206\u522b\u751f\u6210\u5bf9\u5e94\u7684\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u3002<\/p>\n<div class=\"cnblogs_code\">\n<pre>#win\u670d\u52a1\u7aef\r\nGOOS=windows GOARCH=386 make release-server \r\n#win\u5ba2\u6237\u7aef\r\nGOOS=windows GOARCH=386 make release-client\r\n#linux\u670d\u52a1\u7aef\r\nGOOS=linux GOARCH=386 make release-server\r\n#linux\u5ba2\u6237\u7aef\r\nGOOS=linux GOARCH=386 make release-client<\/pre>\n<\/div>\n<p>\u751f\u6210\u5b8c\u6210\u540e\uff0c\u5728\u5de5\u4f5c\u76ee\u5f55\u7684bin\u6587\u4ef6\u5939\u4e0b\uff0c\u4ea7\u751f\u5bf9\u5e94\u7684\u6587\u4ef6\u3002\u4ee5\u7f16\u8bd1windows\u5e73\u53f0\u4e3a\u4f8b\uff0c\u4f1a\u4ea7\u751f\u201cngrok.exe\u201d\u4e0e\u201cngrokd.exe\u201d\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff0c\u524d\u8005\u5ba2\u6237\u7aef\uff0c\u540e\u8005\u9700\u8981\u8fd0\u884c\u5728\u516c\u7f51\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<p>\u56e0\u4e3a\u9879\u76ee\u4e2d\u5f15\u7528\u4e86\u4e00\u4e9b\u5916\u90e8\u8d44\u6e90\uff0c\u751f\u6210\u4f1a\u8017\u8d39\u4e00\u4e9b\u65f6\u95f4\uff0c\u5bf9\u7f51\u7edc\u4e5f\u6709\u4e00\u5b9a\u7684\u8981\u6c42\uff0c\u592a\u6162\u4f1a\u4e2d\u77ed\uff0c\u547d\u4ee4\u6267\u884c\u4e0b\u5982\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904121943022-153887904.png\" alt=\"\" \/><\/p>\n<p>\u751f\u6210\u7ed3\u679c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904122128351-799567752.png\" alt=\"\" \/><\/p>\n<p>\u8fd9\u91cc\u6211\u8fd8\u751f\u6210\u4e86\u4e24\u4e2a\u8fd0\u884c\u5728windows\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u7684\u5e94\u7528\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904122421788-2012822383.png\" alt=\"\" \/><\/p>\n<p>ngrok.exe\u662f\u5ba2\u6237\u7aef\uff0cngrokd.exe\u662f\u670d\u52a1\u7aef\uff0c\u4e0b\u9762\u662f\u6bd4\u8f83\u8fde\u7eed\u7684\u64cd\u4f5c\u7ed3\u679c\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170901231940155-475363716.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170901232038108-311206220.png\" alt=\"\" \/><\/p>\n<h1><a name=\"t29\"><\/a>\u4e94\u3001\u90e8\u7f72\u670d\u52a1\u5668\u7aef\u4e3b\u7a0b\u5e8f<\/h1>\n<h2><a name=\"t30\"><\/a>5.1\u3001\u90e8\u7f72\u5230Windows Server\u670d\u52a1\u5668<\/h2>\n<p>\u5c06\u751f\u6210\u7684ngrokd.exe\u6587\u4ef6\u590d\u5236\u5230windows\u670d\u52a1\u5668\u4e2d\uff0c\u5f53\u7136\u5982\u679c\u8981\u90e8\u7f72\u5230linux\u4e2d\u4e5f\u662f\u6ca1\u6709\u95ee\u9898\u7684\u3002<\/p>\n<p>\u8fd9\u91cc\u6211\u5c06ngrokd.exe\u653e\u5728c:\\grokeServer\u76ee\u5f55\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904122657647-1349116821.png\" alt=\"\" \/><\/p>\n<p>\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u7f16\u5199\u4e86\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\uff1angrokserver2.bat<\/p>\n<div class=\"cnblogs_code\">\n<pre>ngrokd.exe -tlsKey=\"snakeoil.key\" -tlsCrt=\"snakeoil.crt\" -domain=\"ngrok.\u4f60\u7684\u57df\u540d.com\" -httpAddr=\":801\" -httpsAddr=\":802\"<\/pre>\n<\/div>\n<p>\u70b9\u51fb\u6279\u5904\u7406\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904123813882-909153274.png\" alt=\"\" \/><\/p>\n<p>\u7ed1\u5b9a\u7684\u57df\u540d\u6362\u6210\u81ea\u5df1\u7684\u57df\u540d\uff0chttp\u4f7f\u7528801\u7aef\u53e3\uff0chttps\u4f7f\u7528802\u7aef\u53e3\uff0c\u4f9b\u5ba2\u6237\u7aef\u8fde\u63a5\u7684\u7ba1\u9053\u7aef\u53e3\u8bbe\u7f6e\u4e3a4443\u7aef\u53e3\uff0c\u5fc5\u987b\u524d\u9762\u7684\u57df\u540d\u76f8\u540c\u3002<\/p>\n<p>\u4e3a\u4e86\u5b89\u5168\u8bb8\u591a\u670d\u52a1\u5668\u4f1a\u5c06\u7aef\u53e3\u5c4f\u853d\uff0c\u6211\u4f7f\u7528\u7684\u662fECS\u670d\u52a1\u5668\uff0c\u9ed8\u8ba4801\uff0c802\u90fd\u662f\u5173\u95ed\u7684\uff0c\u9700\u8981\u624b\u52a8\u5f00\u542f\uff0c\u5728\u963f\u91cc\u4e91\u7684\u540e\u53f0\u6dfb\u52a0\u5f00\u653e\u7684\u7aef\u53e3\u5c31\u53ef\u4e86\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170901232916530-1378823649.png\" alt=\"\" \/><\/p>\n<h2><a name=\"t31\"><\/a>5.2\u3001\u4e00\u952e\u90e8\u7f72ngrok\u670d\u52a1\u5668\uff08CentOS\u3001Debian\u3001Ubuntu\uff09<\/h2>\n<p>\u5982\u679c\u7f16\u8bd1\u751f\u6210ngrok\u7684\u6e90\u4ee3\u7801\u751f\u6210\u5e94\u7528\u592a\u9ebb\u70e6\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u7f51\u53cb\u5199\u7684\u5de5\u5177\uff0c\u652f\u6301\u4e00\u952e\u90e8\u7f72\u5230\u5b89\u88c5\u5e73\u53f0\uff1aCentOS\u3001Debian\u3001Ubuntu\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/clangcn\/ngrok-one-key-install\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/clangcn\/ngrok-one-key-install<\/a><\/p>\n<h1><a name=\"t32\"><\/a>\u516d\u3001\u90e8\u7f72ngrok\u5ba2\u6237\u7aef<\/h1>\n<p>\u8fd9\u91cc\u7684\u5ba2\u6237\u7aef\u5c31\u662f\u60a8\u7684web\u5e94\u7528\u7a0b\u5e8f\u6240\u8fd0\u884c\u7684\u4e3b\u673a\uff0c\u5c06ubuntu\u751f\u6210\u7684ngrok.exe\u5ba2\u6237\u7aef\u5e94\u7528\u590d\u5236\u5230\u60a8\u7684\u7cfb\u7edf\u4e2d\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170904124357101-756344082.png\" alt=\"\" \/><\/p>\n<p>\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6ngrok.cfg:<\/p>\n<div class=\"cnblogs_code\">\n<pre>server_addr: \"ngrok.\u4f60\u7684\u57df\u540d.com:4443\"\r\ntrust_host_root_certs: false<\/pre>\n<\/div>\n<p>\u6dfb\u52a0\u6279\u5904\u7406start.bat\uff0c\u5982\u679c\u53ea\u8fd0\u884c\u4e00\u6b21\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e0b\u8f93\u5165\u547d\u4ee4\u4e5f\u662f\u4e00\u6837\u7684\u6548\u679c\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<div class=\"cnblogs_code\">\n<pre>ngrok.exe -subdomain kyt -config=ngrok.cfg 8987<\/pre>\n<\/div>\n<p>\u5176\u4e2d8987\u4e3a\u7aef\u53e3\u53f7\uff0c\u8fd0\u884c\u6210\u529f\u7684\u7ed3\u679c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170901232646890-104118921.png\" alt=\"\" \/><\/p>\n<p>\u770b\u5230\u8fd9\u4e2a\u754c\u9762\u65f6\u8bf4\u660e\u5df2\u6210\u529f\u4e86\u3002<\/p>\n<h1><a name=\"t33\"><\/a>\u4e03\u3001\u542f\u52a8\u5ba2\u6237\u7aef\u5e76\u6d4b\u8bd5<\/h1>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u60a8\u6620\u5c04\u540e\u7684\u57df\u540d\u5c31\u53ef\u4ee5\u7a7f\u900f\u5185\u7f51\u8bbf\u95ee\u60a8\u7684web\u670d\u52a1\u5668\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/images2017.cnblogs.com\/blog\/63651\/201709\/63651-20170901233244765-547813455.png\" alt=\"\" \/><\/p>\n<h1><a name=\"t34\"><\/a>\u516b\u3001\u603b\u7ed3<\/h1>\n<p>\u4e00\u5f00\u59cb\u9009\u62e9\u9519\u4e86\u5e73\u53f0\uff0c\u5728windows\u82b1\u4e86\u4e0d\u5c11\u65f6\u95f4\uff0c\u5728ubuntu\u4e0b\u987a\u5229\u5b8c\u6210\u3002<\/p>\n<p>\u65e0\u8bba\u662f\u5ba2\u6237\u7aef\u8fd8\u662f\u670d\u52a1\u5668\u7aef\u6700\u597d\u90fd\u505a\u6210\u670d\u52a1\uff0c\u66f4\u65b9\u4fbf\u4e0e\u7a33\u5b9a\u3002<\/p>\n<p>\u7531\u4e8e\u670d\u52a1\u5668\u4e0a\u540c\u65f6\u8fd0\u884c\u7740IIS\uff0c\u6545\u670d\u52a1\u7aefNgrok\u542f\u52a8\u65f6\u65e0\u6cd5\u4f7f\u752880\u7aef\u53e3\uff0c\u6240\u4ee5\u5728\u4e0a\u9762\uff0c\u6211\u4f7f\u7528\u4e86801\u4f5c\u4e3aNgrok\u670d\u52a1\u5668\u7684http\u7aef\u53e3\uff0c\u4f7f\u7528IIS\u7684\u4ee3\u7406\u529f\u80fd\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c<a href=\"http:\/\/www.it165.net\/admin\/html\/201604\/7486.html\" target=\"_blank\" rel=\"nofollow noopener\">\u70b9\u51fb\u8fd9\u91cc<\/a>\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528nginx\u5c0680\u8f6c\u6362\u6210\u5176\u5b83\u7aef\u53e3\u3002<\/p>\n<p>\u8bb8\u591a\u5185\u5bb9\u90fd\u53c2\u8003\u4e86\u7f51\u53cb\u7684\u6587\u7ae0\u3002<\/p>\n<p><strong>\u5982\u679c\u670d\u52a1\u5668\u642d\u5efa\u597d\u4e86\uff0c\u53ea\u8fd0\u884c\u5ba2\u6237\u7aef\u7a7f\u900f\u5185\u7f51\u4e00\u5206\u949f\u591f\u4e86\uff1a\uff09\u3002<\/strong><\/p>\n<p>\u6b22\u8fce\u60a8\u63d0\u4f9b\u66f4\u52a0\u597d\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u6b22\u8fce\u60a8\u63d0\u4f9b\u66f4\u591a\u7684\u514d\u8d39\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u6211\u968f\u65f6\u66f4\u65b0\uff0c\u8c22\u8c22\uff01<\/p>\n<p>\u4f5c\u8005\uff1a\u5f20\u679c<\/p>\n<p>\u539f\u6587\uff1a<a href=\"http:\/\/www.cnblogs.com\/best\/p\/7465444.html\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/www.cnblogs.com\/best\/p\/7465444.html<\/a><\/p>\n<\/div>\n<\/div>\n<\/article>\n<div class=\"article-bar-bottom\">\n<div class=\"article-copyright\">\u7248\u6743\u58f0\u660e\uff1a\u6b22\u8fce\u8f6c\u8f7d\uff0c\u8bf7\u58f0\u660e\u4f5c\u8005\u4fe1\u606f\u4e0e\u539f\u6587\u94fe\u63a5 https:\/\/blog.csdn.net\/zhangguo5\/article\/details\/77848658<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u5206\u949f\u5b9e\u73b0\u5185\u7f51\u7a7f\u900f\uff08ngrok\u670d\u52a1\u5668\u642d\u5efa<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[125],"class_list":["post-1615","post","type-post","status-publish","format-standard","hentry","tag-09-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/1615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=1615"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/1615\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=1615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=1615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=1615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}