{"id":30,"date":"2018-02-08T10:57:00","date_gmt":"2018-02-08T10:57:00","guid":{"rendered":"https:\/\/www.meblg.com\/?p=30"},"modified":"2022-02-11T10:56:46","modified_gmt":"2022-02-11T02:56:46","slug":"30","status":"publish","type":"post","link":"https:\/\/www.meblg.com\/index.php\/jc\/30\/","title":{"rendered":"\u5982\u4f55\u7528 Frp \u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee"},"content":{"rendered":"<p>\u670d\u52a1\u5668\u7aef\u914d\u7f6e\uff1a<\/p>\n<p>\u767b\u5f55\u670d\u52a1\u5668\uff0c\u5728 <a href=\"https:\/\/www.meblg.com\/?golink=aHR0cHM6Ly9naXRodWIuY29tL2ZhdGVkaWVyL2ZycC9yZWxlYXNlcw==\" >Release<\/a>\u9875\u9762 \u4e0b\u8f7d\u81ea\u5df1\u670d\u52a1\u5668\u5bf9\u5e94\u7248\u672c Frp<\/p>\n<pre><code>wget https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.16.0\/frp_0.16.0_linux_amd64.tar.gz\n<\/code><\/pre>\n<p>\u5b9e\u4f8b\u4e2d\uff1a\u6211\u7528\u7684 centos7 \u6240\u4ee5\u6211\u9009\u62e9 linux_amd64 64\u4f4d\u7684<br \/>\nFrp 0.16.0 \u6700\u65b0\u6d4b\u8bd5\u7248\u7684<br \/>\n\u4f7f\u7528 tar \u6307\u4ee4\u89e3\u538b tar.gz \u6587\u4ef6<\/p>\n<pre><code>tar -zxvf frp_0.16.0_linux_amd64.tar.gz\n<\/code><\/pre>\n<p>\u8fdb\u5165 frp \u76ee\u5f55<\/p>\n<pre><code>cd frp_0.16.0_linux_amd64\n<\/code><\/pre>\n<p>\u5220\u9664\u4e0d\u5fc5\u8981\u7684\u5ba2\u6237\u7aef\u6587\u4ef6<\/p>\n<pre><code>rm -f frpc frpc_full.ini frpc.ini\n<\/code><\/pre>\n<p>\u7248\u672c\u4e0d\u540c\u53ef\u80fd\u7a0d\u6709\u5dee\u5f02\uff0c<br \/>\nfrpc \u4e3a\u5ba2\u6237\u7aef\u6587\u4ef6<br \/>\nfrps \u4e3a\u670d\u52a1\u5668\u7aef\u6587\u4ef6<br \/>\n\u914d\u7f6e\u670d\u52a1\u5668\u7aef\u6587\u4ef6<\/p>\n<pre><code>vim frps.ini\n<\/code><\/pre>\n<p>frps.ini \u4e3a\u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6<br \/>\n\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>[common]<br \/>\nbind_port = 7000<br \/>\nvhost_http_port = 8080<br \/>\ndashboard_port = 7500<br \/>\ndashboard_user = \u7528\u6237\u540d<br \/>\ndashboard_pwd = \u5bc6\u7801<br \/>\nmax_pool_count = 5<br \/>\nauthentication_timeout = 900<\/p>\n<p>subdomain_host = lekee.cc<\/p>\n<p>[ssh]<br \/>\nlisten_port = 6000<br \/>\nauth_token = \u548c\u5ba2\u670d\u7aef token \u5bf9\u5e94<\/p>\n<p>\u7b80\u5355\u89e3\u91ca\uff1a<\/p>\n<p>[common] \u5fc5\u586b\u7684<\/p>\n<p>bind_port Frp \u670d\u52a1\u7aef\u53e3\uff08\u53ef\u81ea\u5b9a\u4e49\uff09<br \/>\nvhost_http_port http \u8bbf\u95ee\u7aef\u53e3\uff08\u53ef\u81ea\u5b9a\u4e49\uff09<br \/>\ndashboard_port dashboard \u754c\u9762\u7aef\u53e3<br \/>\ndashboard_user \u767b\u5f55 dashboard \u7528\u6237\u540d<br \/>\ndashboard_pwd \u767b\u5f55 dashboard \u5bc6\u7801<br \/>\nmax_pool_count \u6700\u5927\u8fde\u63a5\u6c60\u6570\u91cf<br \/>\nauthentication_timeout \u8d85\u65f6\u9a8c\u8bc1\u65f6\u95f4<br \/>\nsubdomain_host \u81ea\u5b9a\u4e49\u4e8c\u7ea7\u57df\u540d<br \/>\n[ssh]<\/p>\n<p>listen_port ssh \u8bbf\u95ee\u7aef\u53e3<br \/>\nauth_token \u7528\u6237\u8eab\u4efd\u8ba4\u8bc1<br \/>\n\u4fdd\u5b58\u4e0a\u9762\u914d\u7f6e\u6587\u4ef6\u5417\uff0c\u542f\u52a8 frp \u670d\u52a1\u5668<\/p>\n<pre><code>.\/frps -c .\/frps.ini\n<\/code><\/pre>\n<p>\u9700\u8981\u540e\u53f0\u8fd0\u884c\uff0c\u8bf7\u770b\u4e0b\u9762<br \/>\n\u670d\u52a1\u7aef\u914d\u7f6e\u7ed3\u675f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u670d\u52a1\u5668\u7aef\u914d\u7f6e\uff1a \u767b\u5f55\u670d\u52a1\u5668\uff0c\u5728 Release\u9875\u9762 \u4e0b\u8f7d\u81ea\u5df1\u670d\u52a1\u5668\u5bf9\u5e94\u7248\u672c Frp wget https:\/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18],"topics":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-jc","tag-frp"],"_links":{"self":[{"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":1,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/posts\/30\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/tags?post=30"},{"taxonomy":"topics","embeddable":true,"href":"https:\/\/www.meblg.com\/index.php\/wp-json\/wp\/v2\/topics?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}