{"id":129092,"date":"2020-06-30T21:21:31","date_gmt":"2020-06-30T13:21:31","guid":{"rendered":"http:\/\/4563.org\/?p=129092"},"modified":"2020-06-30T21:21:31","modified_gmt":"2020-06-30T13:21:31","slug":"%e6%b1%82%e5%8a%a9%e5%a4%a7%e4%bd%ac%e4%b8%80%e4%b8%aafrp%e5%86%85%e7%bd%91%e7%a9%bf%e9%80%8f%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=129092","title":{"rendered":"\u6c42\u52a9\u5927\u4f6c\u4e00\u4e2afrp\u5185\u7f51\u7a7f\u900f\u7684\u95ee\u9898"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>leaveoff<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u6c42\u52a9\u5927\u4f6c\u4e00\u4e2afrp\u5185\u7f51\u7a7f\u900f\u7684\u95ee\u9898<\/h3>\n<p>  \t\t\u670d\u52a1\u7aef\u5728\u963f\u91cc\u4e91\u4e3b\u673a\u4e0a\u9762\uff0c\u7cfb\u7edf\u662f CentOS Linux release 7.5.1804 (Core)<br \/>  frp\u7a0b\u5e8f\u662f\u5728 https:\/\/github.com\/fatedier\/frp\/releases \u8fd9\u91cc\u4e0b\u8f7d\u7684\uff0c\u4e0b\u8f7d\u7684\u7248\u672c\u662f frp_0.33.0_linux_386.tar.gz<\/p>\n<p>  # uname -a<br \/>  Linux izuf673kt36tatwdacejc0z 4.18.0-1.el7.elrepo.x86_64 #1 SMP Sun Aug 12 18:04:19 EDT 2018 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>  frp\u5b89\u88c5\u76ee\u5f55\u662f \/root\/frp_0.33.0_linux_386 <\/p>\n<p>  ===================================<br \/>  vim \/lib\/systemd\/system\/frp.service<br \/>  \u6dfb\u52a0<\/p>\n<p>  Description=frp service<br \/>  After=network.target syslog.target<br \/>  Wants=network.target<\/p>\n<p>  Type=simple<br \/>  # \u670d\u52a1\u7aef<br \/>  ExecStart=\/root\/frp_0.33.0_linux_386\/frps -c \/root\/frp_0.33.0_linux_386\/frps.ini<\/p>\n<p>  WantedBy=multi-user.target<\/p>\n<p>  systemctl start frp<\/p>\n<p>  systemctl enable frp<br \/>  =================================<\/p>\n<p>  \u6309\u7167\u8fd9\u4e2a\u65b9\u6cd5\u505a\u7684systemctl \u81ea\u542f\u52a8\uff0c\u6210\u529f\u4e86\u3002<\/p>\n<p>  systemctl status frp \u663e\u793a\uff1a<\/p>\n<p>  # systemctl status frp<br \/>  \u25cf frp.service &#8211; frp service<br \/>  &nbsp; &nbsp;Loaded: loaded (\/usr\/lib\/systemd\/system\/frp.service; enabled; vendor preset: disabled)<br \/>  &nbsp; &nbsp;Active: active (running) since Tue 2020-06-30 17:31:53 CST; 3h 41min ago<br \/>   Main PID: 3598 (frps)<br \/>  &nbsp; &nbsp;CGroup: \/system.slice\/frp.service<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u2514\u25003598 \/root\/frp_0.33.0_linux_386\/frps -c \/root\/frp_0.33.0_linux_386\/frps.ini<\/p>\n<p>  Jun 30 19:54:38 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 19:54:38   <br \/>  Jun 30 19:55:02 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 19:55:02   <br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e&#8230;ing<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e08d&#8230;ing<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e08&#8230;sed<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e08d&#8230;ing<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e08&#8230;sed<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e08d&#8230;ing<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e08&#8230;sed<br \/>  Jun 30 21:02:31 izuf673kt36tatwdacejc0z frps: 2020\/06\/30 21:02:31   [46f95cae3e&#8230;ess<br \/>  Hint: Some lines were ellipsized, use -l to show in full.<br \/>  # <\/p>\n<p>  \u4f46\u662ffrp\u5ba2\u6237\u7aef\u6309\u7167\u8fd9\u4e2a\u65b9\u6cd5\u6ca1\u6709\u6210\u529f\uff0cfrp\u5ba2\u6237\u7aef\u7684\u7cfb\u7edf\u662f <br \/>  CentOS Linux release 8.2.2004 (Core)<\/p>\n<p>  # uname -a<br \/>  Linux localhost.localdomain 4.18.0-193.6.3.el8_2.x86_64 #1 SMP Wed Jun 10 11:09:32 UTC 2020 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>  frp\u5b89\u88c5\u76ee\u5f55\u662f \/root\/frp_0.33.0_linux_386<br \/>  ===============================<br \/>  vim \/lib\/systemd\/system\/frp.service<br \/>  \u6dfb\u52a0<\/p>\n<p>  Description=frp service<br \/>  After=network.target syslog.target<br \/>  Wants=network.target<\/p>\n<p>  Type=simple<br \/>  # \u5ba2\u6237\u7aef<br \/>  ExecStart=\/root\/frp_0.33.0_linux_386\/frpc -c \/root\/frp_0.33.0_linux_386\/frpc.ini<\/p>\n<p>  WantedBy=multi-user.target<\/p>\n<p>  systemctl start frp<\/p>\n<p>  systemctl enable frp<br \/>  ===============================<\/p>\n<p>  systemctl status frp\u67e5\u72b6\u6001\u663e\u793a\uff1a<br \/>  @localhost ~]# systemctl status frp<br \/>  \u25cf frp.service &#8211; frp service<br \/>  &nbsp; &nbsp;Loaded: loaded (\/usr\/lib\/systemd\/system\/frp.service; disabled; vendor preset: disabled)<br \/>  &nbsp; &nbsp;Active: failed (Result: exit-code) since Tue 2020-06-30 21:12:53 CST; 7s ago<br \/>  Process: 5609 ExecStart=\/root\/frp_0.33.0_linux_386\/frpc -c \/root\/frp_0.33.0_linux_386\/frpc.ini (code=exited&gt;<br \/>   Main PID: 5609 (code=exited, status=203\/EXEC)<\/p>\n<p>  6\u6708 30 21:12:53 localhost.localdomain systemd: Started frp service.<br \/>  6\u6708 30 21:12:53 localhost.localdomain systemd: frp.service: Main process exited, code=exited, status=203\/E&gt;<br \/>  6\u6708 30 21:12:53 localhost.localdomain systemd: frp.service: Failed with result &#8216;exit-code&#8217;.<br \/>  lines 1-9\/9 (END)<\/p>\n<p>  \u6c42\u6559\u5404\u4f4d\u5927\u8001\u770b\u770b\u662f\u4ec0\u4e48\u95ee\u9898\uff0c\u8c22\u8c22\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imes<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u7684\u7cfb\u7edf\u662f64\u4f4d\u7684\uff0c\u6ca1\u6cd5\u8dd132\u4f4d\u7684frp\u7a0b\u5e8f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u80a4\u767d\u8c8c\u7f8e\u5929\u7136\u5446<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u770b\u6837\u5b50\u662f\u673a\u5668\u662f64\u4f4d&#8230;<\/p>\n<p>  \u800c\u4e14\u8fd9\u4e2a\u62a5\u9519\u4e00\u822c\u90fd\u662f\u914d\u7f6e\u6587\u4ef6\u51fa\u4e86\u95ee\u9898\u5efa\u8bae\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6&#8230;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>leaveoff<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\times \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-30 21:20<br \/>  \u4f60\u7684\u7cfb\u7edf\u662f64\u4f4d\u7684\uff0c\u6ca1\u6cd5\u8dd132\u4f4d\u7684frp\u7a0b\u5e8f<\/p>\n<p> github\u4e0a\u6709\u597d\u51e0\u4e2a64\u4f4d\u7684\uff0c\u8bf7\u95ee\u6211\u4e0b\u8f7d\u54ea\u4e00\u4e2a\uff1f\u8c22\u8c22\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Becod<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5efa\u8bae\u5355\u72ec\u8fd0\u884c\uff0c\u4e0d\u8981\u4f7f\u7528systemd\u542f\u52a8\uff0c\u518d\u628alog\u8d34\u4e0a\u6765\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>leaveoff<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u80a4\u767d\u8c8c\u7f8e\u5929\u7136\u5446 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-30 21:21<br \/>  \u770b\u6837\u5b50\u662f\u673a\u5668\u662f64\u4f4d&#8230;<\/p>\n<p>  \u800c\u4e14\u8fd9\u4e2a\u62a5\u9519\u4e00\u822c\u90fd\u662f\u914d\u7f6e\u6587\u4ef6\u51fa\u4e86\u95ee\u9898\u5efa\u8bae\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6&#8230; &#8230;<\/p>\n<p> \u76f4\u63a5\u5728\/root\/frp_0.33.0_linux_386\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u9762\u8fd0\u884c.\/frpc -c .\/frpc.ini\u662f\u6210\u529f\u7684\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u672a\u95fb\u542c\u5fc3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0b\u8f7dAMD64\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>h20<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u867d\u7136\u4f60\u7684\u63d0\u95ee\u65b9\u5f0f\u5f88\u597d\uff0c\u63d0\u4f9b\u4e86\u5f88\u591a\u4fe1\u606f\uff0c\u4f46\u662f\u5173\u952e\u7684\u65e5\u5fd7\u90fd\u6ca1\u90fd\u5217\u51fa\u6765\uff0c\u6ca1\u6709\u8c03\u8bd5\u597d\u4e4b\u524d\u4e0d\u8981\u7528\u670d\u52a1\u542f\u52a8\uff0c\u76f4\u63a5\u8fd0\u884c\u770b\u65e5\u5fd7\u3002<br \/>  \u53e6\u5916\u4e0a\u9762\u8fd9\u7fa4\u4eba\u778ej8\u8bf4\uff0cfrp\u662f\u9759\u6001\u94fe\u63a5\u7684\uff0c32\u4f4d\u4e00\u6837\u53ef\u8dd1\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>leaveoff<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tBecod \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-30 21:24<br \/>  \u5efa\u8bae\u5355\u72ec\u8fd0\u884c\uff0c\u4e0d\u8981\u4f7f\u7528systemd\u542f\u52a8\uff0c\u518d\u628alog\u8d34\u4e0a\u6765<\/p>\n<p> \u76f4\u63a5\u5728\/root\/frp_0.33.0_linux_386\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u9762\u8fd0\u884c.\/frpc -c .\/frpc.ini\u662f\u6210\u529f\u7684\u3002<br \/>  \u8fd9\u6837\u662f\u5355\u72ec\u8fd0\u884c\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>imes<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tleaveoff \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-6-30 21:24<br \/>  github\u4e0a\u6709\u597d\u51e0\u4e2a64\u4f4d\u7684\uff0c\u8bf7\u95ee\u6211\u4e0b\u8f7d\u54ea\u4e00\u4e2a\uff1f\u8c22\u8c22\u3002<\/p>\n<p> linux amd64\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>leaveoff \u5927\u4f6c\u6709\u8bdd\u8bf4 : &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/129092"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129092"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/129092\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129092"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}