{"id":476,"date":"2019-04-16T21:09:57","date_gmt":"2019-04-16T13:09:57","guid":{"rendered":"http:\/\/blog.lovexu.cc\/?p=476"},"modified":"2019-04-16T21:09:57","modified_gmt":"2019-04-16T13:09:57","slug":"%e5%85%b3%e4%ba%8efrp%e7%9a%84%e4%b8%80%e4%ba%9b%e7%aa%8d%e9%97%a8","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/476.html","title":{"rendered":"\u5173\u4e8eFrp\u7684\u4e00\u4e9b\u7a8d\u95e8"},"content":{"rendered":"\n<p>\u5168\u90e8\u8f6c\u81ea<a href=\"https:\/\/github.com\/fatedier\/frp\/issues\/\" target=\"_blank\"  rel=\"nofollow\" >\u5b98\u7f51<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\u4f7f\u7528supervisor\u6765\u5b88\u62a4frps\n\nsudo apt-get update\n\nsudo apt-get install supervisor\n\nvi \/etc\/supervisor\/conf.d\/frps.conf\n\n[program:frps]\ncommand = \/root\/frps\/frps -c \/root\/frps\/frps.ini # frps\u5b58\u653e\u8def\u5f84\nautostart = true\n\n\u91cd\u542fsupervisor\nsudo systemctl restart supervisor\n\n\u67e5\u770bsupervisor\u8fd0\u884c\u72b6\u6001\nsudo supervisorctl status<\/code><\/pre>\n\n\n\n<p><strong>\u8bbe\u7f6efrps\u4e3a\u670d\u52a1<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[Unit]\nDescription=Frp Server Daemon\nAfter=syslog.target network.target\nWants=network.target\n\n[Service]\nType=simple\nExecStart=\/usr\/bin\/frps -c \/etc\/frps.ini\nExecStop=\/usr\/bin\/killall frps\n#\u542f\u52a8\u5931\u8d251\u5206\u949f\u540e\u518d\u6b21\u542f\u52a8\nRestartSec=1min\nKillMode=control-group\n#\u91cd\u542f\u63a7\u5236\uff1a\u603b\u662f\u91cd\u542f\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n\n\u8fd9\u4e2a\u811a\u672c\u653e\u5728# \/etc\/systemd\/system\/frps.service\n\u7136\u540e systemctl enable frps.service \u5373\u53ef\u3002<\/code><\/pre>\n\n\n\n<p> Frps \u4e00\u952e\u5b89\u88c5\u811a\u672c&amp;\u7ba1\u7406\u811a\u672c for Linux\uff1a<a href=\"https:\/\/github.com\/MvsCode\/frp-onekey\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/github.com\/MvsCode\/frp-onekey<\/a><\/p>\n\n\n\n<p class=\"has-drop-cap\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5168\u90e8\u8f6c\u81ea\u5b98\u7f51 \u8bbe\u7f6efrps\u4e3a\u670d\u52a1 Frps \u4e00\u952e\u5b89\u88c5\u811a\u672c&amp;\u7ba1\u7406\u811a\u672c for Linux\uff1ahttps:\/\/github.co &#8230;<\/p>\n","protected":false},"author":1,"featured_media":350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[30],"class_list":["post-476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","tag-frp"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=476"}],"version-history":[{"count":0,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media\/350"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}