{"id":3821,"date":"2022-03-15T01:03:44","date_gmt":"2022-03-14T17:03:44","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=3821"},"modified":"2024-05-05T14:19:16","modified_gmt":"2024-05-05T06:19:16","slug":"frp-%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=3821","title":{"rendered":"frp \u5185\u7f51\u7a7f\u900f"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.iyatt.com\/?p=3821\/#%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83\" >\u6d4b\u8bd5\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.iyatt.com\/?p=3821\/#%E5%AE%9E%E7%94%A8%E5%9C%BA%E6%99%AF\" >\u5b9e\u7528\u573a\u666f<\/a><\/li><\/ul><\/nav><\/div>\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83\"><\/span>\u6d4b\u8bd5\u73af\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u516c\u7f51IP\u670d\u52a1\u5668\u7aef\uff1a\u963f\u91cc\u4e91\u5b66\u751f\u673a-\u8f7b\u91cf\u670d\u52a1\u5668\uff08Ubuntu 20.04\uff09<\/p>\n\n\n\n<p>\u5185\u7f51\u5ba2\u6237\u7aef\u8bbe\u5907\uff1a\u6811\u8393\u6d3e cm4\uff08\u5b98\u65b964\u4f4d\u7cfb\u7edf2022 Debian 11\uff09<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>frp \u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fatedier\/frp\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/fatedier\/frp<\/a><\/p>\n\n\n\n<p>\u53ef\u6267\u884c\u6587\u4ef6\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/fatedier\/frp\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/fatedier\/frp\/releases<\/a><\/p>\n\n\n\n<p>\u8f6f\u4ef6\u7248\u672c\u7684\u9009\u62e9\uff1a<\/p>\n\n\n\n<p>\u2460 Windows \u7535\u8111\uff1a\u5206\u522b\u5bf9\u5e94 32 \u4f4d\uff08x86\uff09\u548c 64\u4f4d\uff08x86_64\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"218\" height=\"58\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-245.png\" alt=\"\" class=\"wp-image-3975 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 218px; --smush-placeholder-aspect-ratio: 218\/58;\" \/><\/figure>\n\n\n\n<p>\u2461 Linux \u7535\u8111\uff1a\u5206\u522b\u5bf9\u5e94 32 \u4f4d\uff08x86\uff09\u548c 64\u4f4d\uff08x86_64\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"208\" height=\"62\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-246.png\" alt=\"\" class=\"wp-image-3976 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 208px; --smush-placeholder-aspect-ratio: 208\/62;\" \/><\/figure>\n\n\n\n<p>\u2462 \u6811\u8393\u6d3e\/Jetson :\u5206\u522b\u5bf9\u5e94 32 \u4f4d\uff08armhf\uff09\u548c 64\u4f4d\uff08aarch64\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"207\" height=\"68\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-247.png\" alt=\"\" class=\"wp-image-3977 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 207px; --smush-placeholder-aspect-ratio: 207\/68;\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6211\u8fd9\u91cc\u670d\u52a1\u5668\u7aef\u662f\u8981\u8fd0\u884c\u5728 Ubuntu 20.04 \u7684\u4e91\u670d\u52a1\u5668\u4e0a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"899\" height=\"115\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-251.png\" alt=\"\" class=\"wp-image-3981 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-251.png 899w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-251-300x38.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-251-768x98.png 768w\" data-sizes=\"(max-width: 899px) 100vw, 899px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 899px; --smush-placeholder-aspect-ratio: 899\/115;\" \/><\/figure>\n\n\n\n<p>\u6240\u4ee5\u5e94\u5bf9\u5e94\u4e0a\u9762 \u2461 \u4e2d 64 \u4f4d\u60c5\u51b5\u4e0b\u8f7d<\/p>\n\n\n\n<p>\u5ba2\u6237\u7aef\u6211\u662f\u8981\u8fd0\u884c\u5728\u6811\u8393\u6d3e cm4<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"683\" height=\"120\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-250.png\" alt=\"\" class=\"wp-image-3980 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-250.png 683w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-250-300x53.png 300w\" data-sizes=\"(max-width: 683px) 100vw, 683px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 683px; --smush-placeholder-aspect-ratio: 683\/120;\" \/><\/figure>\n\n\n\n<p>\u6240\u4ee5\u5e94\u5bf9\u5e94\u4e0a\u9762 \u2462 \u4e2d 64 \u4f4d\u60c5\u51b5\u4e0b\u8f7d<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4f7f\u7528 <strong>tar xvf [\u5305\u540d]<\/strong> \u8fdb\u884c\u89e3\u538b\uff0c\u670d\u52a1\u5668\u7aef\u53ea\u53d6\u5bf9\u5e94\u5305\u4e2d\u7684 frps \u6587\u4ef6\uff08frp server\uff09\uff0c\u5ba2\u6237\u7aef\u53ea\u53d6\u5bf9\u5e94\u5305\u4e2d\u7684 frpc \u6587\u4ef6\uff08frp client\uff09<\/p>\n\n\n\n<p>\u8bb0\u5f97\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650 <strong>chmod a+x \u3010\u6587\u4ef6\u540d\u3011<\/strong><\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>\u6d4b\u8bd5\u65f6\u670d\u52a1\u5668\u7aef\u516c\u7f51\u5bf9\u5916\u8bbf\u95ee\u5f00\u653e\u7aef\u53e3 8000\uff0c\u53e6\u5916\u5f00\u653e 8010 \u7aef\u53e3\u7528\u4e8e\u4ee3\u7406\u5ba2\u6237\u7aef\u8fde\u63a5<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"455\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-208-1024x455.png\" alt=\"\" class=\"wp-image-3827 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-208-1024x455.png 1024w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-208-300x133.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-208-768x341.png 768w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-208.png 1157w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/455;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%9E%E7%94%A8%E5%9C%BA%E6%99%AF\"><\/span>\u5b9e\u7528\u573a\u666f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>\uff081\uff09web \u670d\u52a1<\/strong><\/p>\n\n\n\n<p>frps \u7aef\u5199\u914d\u7f6e\u6587\u4ef6 frps.ini<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frps.ini\n[common]\nbind_port = 8010\nvhost_http_port = 8000<\/pre>\n\n\n\n<p>\u542f\u52a8\u670d\u52a1\u5668\u7aef .\/frps -c frps.ini<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"583\" height=\"172\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-209.png\" alt=\"\" class=\"wp-image-3828 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-209.png 583w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-209-300x89.png 300w\" data-sizes=\"(max-width: 583px) 100vw, 583px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 583px; --smush-placeholder-aspect-ratio: 583\/172;\" \/><\/figure>\n\n\n\n<p>frpc \u7aef\u5199\u914d\u7f6e\u6587\u4ef6 frpc.ini<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frpc.ini\n[common]\n# \u8fd9\u91cc\u793a\u4f8b\u7684\u516c\u7f51\u670d\u52a1\u5668\u5c31\u662f\u6211\u8fd9\u4e2a\u535a\u5ba2\u7f51\u7ad9\u7684\u670d\u52a1\u5668\uff0c\u5730\u5740\u5c31\u7528 iyatt.com \u6765\u6307\u5b9a\u4e86\uff0c\u6ca1\u6709\u57df\u540d\u5c31\u5199\u670d\u52a1\u5668IP\nserver_addr = iyatt.com\n# \u670d\u52a1\u5668\u7aef\u5f00\u653e\u7ed9\u5ba2\u6237\u7aef\u8fde\u63a5\u7684\u7aef\u53e3\nserver_port = 8010\n\n[web]\n# \u4f7f\u7528 http:\/\/ \u5934\u8bbf\u95ee\ntype = http\n# \u6307\u5b9a\u672c\u5730 web \u7aef\u53e3\nlocal_port = 10000\n# \u6307\u5b9a\u7f51\u7ad9\u8bbf\u95ee\u57df\u540d\uff0c\u6ce8\u610f\u8fd9\u91cc\u8bbe\u7f6e\u7684\u57df\u540d\uff0c\u53e6\u5916\u8fd8\u8981\u8bbe\u7f6e\u57df\u540d\u89e3\u6790\uff08\u5373\u8981\u6c42\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u7684\u57df\u540d\uff09\uff0c\u6ca1\u6709\u57df\u540d\u5c31\u5199\u670d\u52a1\u5668IP\ncustom_domains = test.iyatt.com<\/pre>\n\n\n\n<p>\u542f\u52a8\u5ba2\u6237\u7aef .\/frpc -c frpc.ini<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"622\" height=\"127\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-210.png\" alt=\"\" class=\"wp-image-3829 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-210.png 622w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-210-300x61.png 300w\" data-sizes=\"(max-width: 622px) 100vw, 622px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 622px; --smush-placeholder-aspect-ratio: 622\/127;\" \/><\/figure>\n\n\n\n<p>\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u540d\u4e3a index.html<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n&lt;meta charset=\"utf-8\">\n&lt;title>test&lt;\/title>\n&lt;\/head>\n&lt;body>\n    Hello World.\n&lt;\/body>\n&lt;\/html><\/pre>\n\n\n\n<p>web \u670d\u52a1\u5668\u5c31\u7528 Python \u6765\u5f00\u542f\uff0c\u5728 index.html \u6240\u5728\u76ee\u5f55\u6267\u884c<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python3 -m http.server 10000<\/pre>\n\n\n\n<p>\u6d4b\u8bd5\u516c\u7f51\u8bbf\u95ee<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"458\" height=\"179\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-212.png\" alt=\"\" class=\"wp-image-3831 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-212.png 458w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-212-300x117.png 300w\" data-sizes=\"(max-width: 458px) 100vw, 458px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 458px; --smush-placeholder-aspect-ratio: 458\/179;\" \/><\/figure>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>\u4e0a\u9762\u662f\u914d\u7f6e\u7684 http\uff0c\u5982\u679c\u8981\u914d\u7f6e https\uff0c\u5c31\u8fd8\u8981\u53e6\u5916\u8bbe\u7f6e\u8bc1\u4e66\u6587\u4ef6<\/p>\n\n\n\n<p>\u5148\u7533\u8bf7\u8bc1\u4e66\uff1a<a href=\"https:\/\/freessl.cn\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/freessl.cn<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"864\" height=\"574\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-222.png\" alt=\"\" class=\"wp-image-3850 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-222.png 864w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-222-300x199.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-222-768x510.png 768w\" data-sizes=\"(max-width: 864px) 100vw, 864px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 864px; --smush-placeholder-aspect-ratio: 864\/574;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"834\" height=\"523\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-223.png\" alt=\"\" class=\"wp-image-3851 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-223.png 834w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-223-300x188.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-223-768x482.png 768w\" data-sizes=\"(max-width: 834px) 100vw, 834px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 834px; --smush-placeholder-aspect-ratio: 834\/523;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"474\" height=\"280\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-218.png\" alt=\"\" class=\"wp-image-3846 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-218.png 474w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-218-300x177.png 300w\" data-sizes=\"(max-width: 474px) 100vw, 474px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 474px; --smush-placeholder-aspect-ratio: 474\/280;\" \/><\/figure>\n\n\n\n<p>\u7136\u540e\u6309\u8981\u6c42\u53bb\u57df\u540d\u670d\u52a1\u5546\u7684\u63a7\u5236\u53f0\u8bbe\u7f6e\u89e3\u6790<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"758\" height=\"520\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-224.png\" alt=\"\" class=\"wp-image-3852 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-224.png 758w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-224-300x206.png 300w\" data-sizes=\"(max-width: 758px) 100vw, 758px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 758px; --smush-placeholder-aspect-ratio: 758\/520;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"771\" height=\"876\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-225.png\" alt=\"\" class=\"wp-image-3853 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-225.png 771w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-225-264x300.png 264w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-225-768x873.png 768w\" data-sizes=\"(max-width: 771px) 100vw, 771px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 771px; --smush-placeholder-aspect-ratio: 771\/876;\" \/><\/figure>\n\n\n\n<p>\u5148\u68c0\u6d4b\u4e00\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"293\" height=\"153\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-226.png\" alt=\"\" class=\"wp-image-3854 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 293px; --smush-placeholder-aspect-ratio: 293\/153;\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u770b\u5230\u5339\u914d\u4e86\uff0c\u90a3\u8bf4\u660e\u6ca1\u95ee\u9898\u4e86\uff0c\u518d\u70b9\u51fb\u9a8c\u8bc1\uff08\u5982\u679c\u76f4\u63a5\u70b9\u9a8c\u8bc1\uff0c\u4f46\u662fDNS\u8fd8\u6ca1\u66f4\u65b0\uff0c\u5bfc\u81f4\u9a8c\u8bc1\u5931\u8d25\u5c31\u8981\u7b49\u5341\u5206\u949f\u540e\u624d\u80fd\u518d\u8bd5\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"738\" height=\"739\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-233.png\" alt=\"\" class=\"wp-image-3867 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-233.png 738w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-233-300x300.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-233-150x150.png 150w\" data-sizes=\"(max-width: 738px) 100vw, 738px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 738px; --smush-placeholder-aspect-ratio: 738\/739;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"269\" height=\"180\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-227.png\" alt=\"\" class=\"wp-image-3855 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 269px; --smush-placeholder-aspect-ratio: 269\/180;\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u63d0\u793a\u8ba2\u5355\u672a\u5b8c\u6210\u7684\u8bdd\uff0c\u5c31\u7b49\u51e0\u5206\u949f\u518d\u8bd5\u8bd5<\/p>\n\n\n\n<p>\u9a8c\u8bc1\u6210\u529f\u540e\uff0c\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u8bc1\u4e66\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u4e3a\u7533\u8bf7\u65f6\u7684\u57df\u540d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"201\" height=\"94\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-228.png\" alt=\"\" class=\"wp-image-3859 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 201px; --smush-placeholder-aspect-ratio: 201\/94;\" \/><\/figure>\n\n\n\n<p>\u89e3\u538b\u53ef\u4ee5\u770b\u5230\u4e24\u4e2a\u6587\u4ef6\uff0c\u516c\u94a5\u548c\u79c1\u94a5<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"203\" height=\"100\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-229.png\" alt=\"\" class=\"wp-image-3860 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 203px; --smush-placeholder-aspect-ratio: 203\/100;\" \/><\/figure>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n\n\n\n<p>\u914d\u7f6e frps<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frps.ini\n[common]\nbind_port = 8010\nvhost_https_port = 8000<\/pre>\n\n\n\n<p>\u7136\u540e\u5f00\u59cb\u914d\u7f6e frpc<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frpc.ini\n[common]\nserver_addr = iyatt.com\nserver_port = 8010\n\n[test_htts2http]\ntype = https\ncustom_domains = test.iyatt.com\nplugin = https2http\n# \u672c\u5730 web \u670d\u52a1\u5f00\u7684\u7aef\u53e3\u662f 10000\nplugin_local_addr = 127.0.0.1:10000\n\n# \u5c06\u4e0a\u9762\u7533\u8bf7\u7684\u8bc1\u4e66\u6587\u4ef6\u8def\u5f84\u914d\u7f6e\u5230\u8fd9\u91cc\nplugin_crt_path = \/home\/pi\/full_chain.pem\nplugin_key_path = \/home\/pi\/private.key\nplugin_host_header_rewrite = 127.0.0.1<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"510\" height=\"343\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-232.png\" alt=\"\" class=\"wp-image-3865 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-232.png 510w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-232-300x202.png 300w\" data-sizes=\"(max-width: 510px) 100vw, 510px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 510px; --smush-placeholder-aspect-ratio: 510\/343;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"470\" height=\"655\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-231.png\" alt=\"\" class=\"wp-image-3862 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-231.png 470w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-231-215x300.png 215w\" data-sizes=\"(max-width: 470px) 100vw, 470px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 470px; --smush-placeholder-aspect-ratio: 470\/655;\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\uff082\uff09\u6587\u4ef6\u8bbf\u95ee\u670d\u52a1<\/strong><\/p>\n\n\n\n<p>frps \u914d\u7f6e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frps.ini\n[common]\nbind_port = 8010<\/pre>\n\n\n\n<p>frpc \u914d\u7f6e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frpc.ini\n[common]\nserver_addr = iyatt.com\nserver_port = 8010\n\n[test_static_file]\ntype = tcp\n# \u516c\u7f51\u5bf9\u5916\u8bbf\u95ee\u7684\u7aef\u53e3\nremote_port = 8000\nplugin = static_file\n# \u5bf9\u5916\u63d0\u4f9b\u8bbf\u95ee\u7684\u76ee\u5f55\nplugin_local_path = \/home\/pi\n# \u8bbf\u95ee\u7528\u6237\u540d\u548c\u5bc6\u7801\nplugin_http_user = abc\nplugin_http_passwd = abc<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"541\" height=\"327\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-214.png\" alt=\"\" class=\"wp-image-3834 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-214.png 541w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-214-300x181.png 300w\" data-sizes=\"(max-width: 541px) 100vw, 541px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 541px; --smush-placeholder-aspect-ratio: 541\/327;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"498\" height=\"637\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-213.png\" alt=\"\" class=\"wp-image-3833 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-213.png 498w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-213-235x300.png 235w\" data-sizes=\"(max-width: 498px) 100vw, 498px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 498px; --smush-placeholder-aspect-ratio: 498\/637;\" \/><\/figure>\n\n\n\n<p>\u5f53\u7136\u5982\u679c\u5728\u4e0b\u9762\u6709 index.html \u6587\u4ef6\uff0c\u4e00\u6837\u4e5f\u53ef\u4ee5\u89e3\u6790\u7f51\u9875\u3002\u5bf9\u4e8e\u6ca1\u6709\u57df\u540d\u4f46\u662f\u6709\u516c\u7f51\u670d\u52a1\u5668\u7684\u4eba\u6765\u8bf4\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u63d0\u4f9b web \u670d\u52a1\uff0c\u53ef\u4ee5\u4f7f\u7528 ip \u8bbf\u95ee\u3002<\/p>\n\n\n\n<p><strong>\uff083\uff09ssh \u8fde\u63a5<\/strong><\/p>\n\n\n\n<p>frps \u914d\u7f6e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frps.ini\n[common]\nbind_port = 8010<\/pre>\n\n\n\n<p>frpc \u914d\u7f6e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># frpc.ini\n[common]\nserver_addr = iyatt.com\nserver_port = 8010\n\n[ssh]\ntype = tcp\n# \u672c\u5730 ssh \u9ed8\u8ba4\u7aef\u53e3\u662f 22\nlocal_port = 22\n# \u516c\u7f51\u8bbf\u95ee\u7aef\u53e3\nremote_port = 8000<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"836\" height=\"502\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-215.png\" alt=\"\" class=\"wp-image-3841 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-215.png 836w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-215-300x180.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/03\/image-215-768x461.png 768w\" data-sizes=\"(max-width: 836px) 100vw, 836px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 836px; --smush-placeholder-aspect-ratio: 836\/502;\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6d4b\u8bd5\u73af\u5883 \u516c\u7f51IP\u670d\u52a1\u5668\u7aef\uff1a\u963f\u91cc\u4e91\u5b66\u751f\u673a-\u8f7b\u91cf\u670d\u52a1\u5668\uff08Ubuntu 20.04\uff09 \u5185\u7f51\u5ba2\u6237\u7aef\u8bbe\u5907\uff1a\u6811\u8393\u6d3e cm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,598],"tags":[],"class_list":["post-3821","post","type-post","status-publish","format-standard","hentry","category-all","category-linux"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/3821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3821"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/3821\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}