{"id":800,"date":"2021-01-25T14:51:49","date_gmt":"2021-01-25T06:51:49","guid":{"rendered":"https:\/\/fick707.com\/?p=800"},"modified":"2021-02-19T14:05:50","modified_gmt":"2021-02-19T06:05:50","slug":"%e7%be%a4%e6%99%96%e5%ae%89%e8%a3%85frp%e5%ae%a2%e6%88%b7%e7%ab%af","status":"publish","type":"post","link":"https:\/\/fick707.com\/?p=800","title":{"rendered":"\u7fa4\u6656\u5b89\u88c5frp\u5ba2\u6237\u7aef"},"content":{"rendered":"<h1 id=\"frp\">\u7fa4\u6656\u5b89\u88c5frp\u5ba2\u6237\u7aef\u53ca\u914d\u7f6e<\/h1>\n<h2 id=\"_1\">\u767b\u5f55<\/h2>\n<ul>\n<li>\u7528ssh\u547d\u4ee4\u767b\u5f55\u5230\u7fa4\u6656\u4e3b\u673a\uff1assh\u00a0<a href=\"mailto:admin@xx.xx.xx.xx\">admin@xx.xx.xx.xx<\/a>\u00a0(\u7fa4\u6656\u7684ip\u5730\u5740)\uff0c\u8981\u6c42\u8f93\u5165\u5bc6\u7801\uff1b<\/li>\n<\/ul>\n<h2 id=\"frp_1\">\u4e0b\u8f7dfrp\u5ba2\u6237\u7aef<\/h2>\n<ul>\n<li>\u767b\u5f55\u540e\uff0c\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\uff0c\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7dfrp\u5ba2\u6237\u7aef\u5b89\u88c5\u5305\uff1awget\u00a0<a href=\"https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.35.0\/frp_0.35.0_linux_arm64.tar.gz\">https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.35.0\/frp_0.35.0_linux_arm64.tar.gz<\/a><\/li>\n<li>\u5728\u5f53\u524d\u76ee\u5f55\u4e0bls \u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u662f\u5426\u4e0b\u8f7d\u5b8c\u6210\uff1bls\u547d\u4ee4\uff0c\u770b\u4e00\u4e0b\u5f53\u524d\u76ee\u5f55\u4e0b\u662f\u5426\u6709\u201cfrp_0.35.0_linux_arm64.tar.gz\u201d\u6587\u4ef6\uff1b<\/li>\n<\/ul>\n<h2 id=\"_2\">\u5b89\u88c5<\/h2>\n<ul>\n<li>\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u538b\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u5373\u53ef\uff1atar -zxvf frp_0.35.0_linux_arm64.tar.gz<\/li>\n<li>\u5b89\u88c5\u6587\u4ef6\u4f1a\u89e3\u538b\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\uff0c\u591a\u51fa\u7684\u76ee\u5f55\u201cfrp_0.35.0_linux_arm64\u201d\u5373\u662f\uff1b<\/li>\n<\/ul>\n<h2 id=\"_3\">\u914d\u7f6e<\/h2>\n<ul>\n<li>\u8fdb\u5165\u201cfrp_0.35.0_linux_arm64\u201d\u76ee\u5f55\uff1acd frp_0.35.0_linux_arm64<\/li>\n<li>\u7f16\u8f91frpc.ini\u6587\u4ef6\uff08\u8fd9\u4e2a\u6587\u4ef6\u5373\u662ffrp\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u6587\u4ef6\uff09 \uff1avi frpc.ini<\/li>\n<li>\u5c06\u5185\u5bb9\u6362\u6210\u4ee5\u4e0b\u5185\u5bb9\uff0c\u6ce8\u610f\u5c06\u6240\u6709local_ip\u7684\u503c\u4fee\u6539\u4e3a\u7fa4\u6656\u7684IP\u5730\u5740<\/li>\n<\/ul>\n<div class=\"codehilite\">\n<pre>[common]\nserver_addr = 117.50.12.126\nserver_port = 7000\nauth_token = sEBtLk0oJ2ndUN04\npool_count = 5\n\n# ssh\n[ssh]\ntype = tcp\nlocal_ip = 192.168.31.50\nlocal_port = 22\nremote_port = 7601\n\n# web\n[dms]\ntype = tcp\nlocal_ip = 192.168.31.50\nlocal_port = 5000\nremote_port = 5000\n# subdomain = nas\n\n# cloud\n[cloud_station]\ntype = tcp\nlocal_ip = 192.168.31.50\nlocal_port = 6690\nremote_port = 6690\n\n# photo\n[ds_photo]\ntype = tcp\nlocal_ip = 192.168.31.50\nlocal_port = 80\nremote_port = 7600\n<\/pre>\n<\/div>\n<h2 id=\"frp_2\">\u542f\u52a8frp\u670d\u52a1<\/h2>\n<ul>\n<li>\u5982\u679cfrp\u670d\u52a1\u662f\u8fd0\u884c\u7740\u7684\uff0c\u90a3\u9700\u8981\u5148\u5c06\u5176\u505c\u6b62\uff1a\n<ul>\n<li>\u5148\u67e5\u8be2\u4e00\u4e0b\u8fdb\u7a0b\u53f7\uff1aps -ef | grep frpc<\/li>\n<li>\u518d\u5173\u95ed\u8fd9\u4e2a\u8fdb\u7a0b\uff1akill -9 \u8fdb\u7a0b\u53f7<\/li>\n<li>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u7ea2\u8272\u6846\u8d77\u7684\u5c31\u662f\u8981\u67e5\u7684\u8fdb\u7a0b\u53f7\uff0c\u5982\u679c\u6709\u591a\u6761\u8bb0\u5f55\uff0c\u5219\u90fd\u8981\u5173\u95ed\u6389\uff1b<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-808\" src=\"https:\/\/fick707.com\/wp-content\/uploads\/2021\/01\/20210219001.png\" alt=\"\" width=\"828\" height=\"109\" \/><\/li>\n<\/ul>\n<\/li>\n<li>\u7528\u8fd9\u4e2a\u547d\u4ee4\u542f\u52a8\uff1anohup .\/frpc -c .\/frpc.ini &amp;<\/li>\n<\/ul>\n<h2 id=\"_4\">\u89c2\u5bdf\u4e00\u4e0b\u670d\u52a1\u662f\u5426\u6b63\u5e38<\/h2>\n<ul>\n<li>\u7528\u6d4f\u89c8\u5668\u901a\u8fc7\u5916\u7f51ip\u8bbf\u95ee\u4e00\u4e0b\u662f\u5426\u53ef\u4ee5\uff1ahttp:117.50.12.126:5000 \u770b\u4e00\u4e0b\u662f\u5426\u6709\u670d\u52a1<\/li>\n<li>\u5982\u679c\u6709\u670d\u52a1\uff0c\u5373\u662ffrp\u5ba2\u6237\u7aef\u5df2\u7ecf\u914d\u7f6e\u5b8c\u6210\u4e86\u3002\u53ef\u4ee5\u5728\u5916\u7f51\u7684\u670d\u52a1\u5668\u4e0a\u505anginx\u914d\u7f6e\u7b49\u4e8b\u9879\u4e86\u3002\u6709\u5176\u4ed6\u670d\u52a1\u60f3\u901a\u8fc7\u5185\u7f51\u7a7f\u900f\u6dfb\u52a0\u76f8\u5e94\u914d\u7f6e\u5c31\u884c\u4e86\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7fa4\u6656\u5b89\u88c5frp\u5ba2\u6237\u7aef\u53ca\u914d\u7f6e \u767b\u5f55 \u7528ssh\u547d\u4ee4\u767b\u5f55\u5230\u7fa4\u6656\u4e3b\u673a\uff1assh\u00a0admin@xx.xx.xx. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[15,14],"series":[],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-programmers","tag-nas","tag-14"],"_links":{"self":[{"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts\/800"}],"collection":[{"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=800"}],"version-history":[{"count":5,"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":809,"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions\/809"}],"wp:attachment":[{"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}