{"id":214,"date":"2019-09-01T17:12:29","date_gmt":"2019-09-01T09:12:29","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=214"},"modified":"2023-08-09T22:38:23","modified_gmt":"2023-08-09T14:38:23","slug":"%e5%88%a9%e7%94%a8frp%e5%92%8cvnc%ef%bc%8c%e9%9a%8f%e6%97%b6%e6%8e%a7%e5%88%b6%e5%ae%b6%e9%87%8c%e7%94%b5%e8%84%91","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=214","title":{"rendered":"\u5229\u7528FRP\u548cVNC\uff0c\u968f\u65f6\u63a7\u5236\u5bb6\u91cc\u7535\u8111"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u73af\u5883\uff1a\n\u5bb6\u91cc\u7535\u8111\uff08\u53d7\u63a7\u65b9\uff09\uff0cWindows\u7cfb\u7edf\uff0c\u5df2\u5b89\u88c5VNC Server\uff0c\u5e76\u8bbe\u7f6e\u597d\u5bc6\u7801\uff0c\u7aef\u53e3\u53f7\u9ed8\u8ba4\u4e3a5900\n\u4e00\u53f0\u4e91\u4e3b\u673a\uff08\u670d\u52a1\u5668\uff09\uff0cLinux\u7cfb\u7edf\n\n\u914d\u7f6e\u6b65\u9aa4\uff1a\n1\u3001\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5FRP\n\u5730\u5740\uff1ahttps:\/\/github.com\/fatedier\/frp\/releases\n\u4e0b\u8f7d&amp;\u89e3\u538b\uff0c\u5728\u76ee\u5f55\u4e2d\u627e\u5230frps.ini\u6587\u4ef6\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a\n[common]\nbind_port = 7000\nbind_addr = 0.0.0.0\n\u7136\u540e\u5efa\u7acb\u4e00\u4e2astart.sh\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a\n\nnohup .\/frps >> log.log 2>&amp;1 &amp;\n\u7136\u540e\u914d\u7f6e\u53ef\u6267\u884c\uff1a\u00a0\n\nchmod +x start.sh\n.\/start.sh\n\n2.\u5728\u53d7\u63a7\u65b9\u5b89\u88c5FRP\n\n\u5730\u5740\uff1ahttps:\/\/github.com\/fatedier\/frp\/releases\n\n\u4e0b\u8f7d&amp;\u89e3\u538b\uff0c\u5728\u76ee\u5f55\u4e2d\u627e\u5230frpc.ini\u6587\u4ef6\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a\n\n[common]\nserver_addr = \u586b\u670d\u52a1\u5668\u7684IP\nserver_port = 7000\nlogin_fail_exit = false \n \n[range:VNC]\ntype = tcp\nlocal_ip = 127.0.0.1\nlocal_port = 5900\nremote_port = 5900\n\u7136\u540e\u540c\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2abat\u6587\u4ef6\uff0c\u5982\u4e0b\uff1a\n\n@echo off\npushd \"%~dp0\"\nif \"%1\"==\"h\" goto begin\nstart mshta vbscript:createobject(\"wscript.shell\").run(\"\"\"%~nx0\"\" h\",0)(window.close)&amp;&amp;exit\n\n:begin\nfrpc.exe\npopd\n\u53cc\u51fb\u8fd0\u884c\n\n\u7ed9\u8fd9\u4e2abat\u65b0\u5efa\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\uff0c\u62f7\u5230\u5f00\u59cb\u83dc\u5355\u9644\u4ef6\u4e2d\u7684\u542f\u52a8\u76ee\u5f55\uff0c\u8fd9\u6837\u5f00\u673a\u540e\u4f1a\u81ea\u52a8\u542f\u52a8\uff0c\u5e76\u4e14\u5728\u540e\u53f0\u9690\u85cf\u8fd0\u884c\uff0c\u4e0d\u5e72\u6270\u6b63\u5e38\u5de5\u4f5c\u3002\nwin10\u4e2dctl+R\u8fd0\u884cshell:startup\u5373\u53ef\u6253\u5f00\u81ea\u52a8\u542f\u52a8\u83dc\u5355\n\n\n3. \u5728\u5176\u5b83\u7535\u8111\u4e0a\uff0cVNC Viewer\u76f4\u63a5\u8fde\u63a5\u670d\u52a1\u5668\u7684IP\uff0c\u5373\u53ef\u901a\u8fc7\u670d\u52a1\u5668\u4e2d\u8f6c\u5230\u5bb6\u4e2d\u7535\u8111\n\n\u3010\u6ce8\u610f\u3011\n\u5982\u679c\u6709\u591a\u53f0\u53d7\u63a7\u673a\u5668\uff0c\u9700\u8981\u628a\n[range:VNC]\u4e2d\u7684VNC\u4fee\u6539\u4e3a\u5176\u5b83\u540d\u5b57\uff0c\u9632\u6b62\u51b2\u7a81<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/214"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=214"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":5017,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions\/5017"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}