{"id":11,"date":"2024-06-30T12:06:46","date_gmt":"2024-06-30T04:06:46","guid":{"rendered":"http:\/\/blog.62510360.xyz\/?p=11"},"modified":"2024-06-30T13:32:10","modified_gmt":"2024-06-30T05:32:10","slug":"serv00%e9%83%a8%e7%bd%b2vless%e8%8a%82%e7%82%b9","status":"publish","type":"post","link":"https:\/\/blog.62510360.xyz\/?p=11","title":{"rendered":"Serv00\u90e8\u7f72vless\u8282\u70b9"},"content":{"rendered":"\n<p>\ud83c\udf1f \u514d\u8d39\u865a\u62df\u4e3b\u673a &#8211; Serv00<br>Serv00 \u662f\u4e00\u5bb6\u63d0\u4f9b\u514d\u8d39\u865a\u62df\u4e3b\u673a\u7684\u5382\u5546\u3002\u5b83\u7684\u514d\u8d39\u5957\u9910\u5305\u542b:<br>3GB \u5b58\u50a8\u7a7a\u95f4<br>512MB \u5185\u5b58<br>\u4e0d\u9650\u6d41\u91cf<br>\u652f\u6301PHP\u3001MySQL\u7b49\u7f51\u7ad9\u5f00\u53d1\u8bed\u8a00\u548c\u6570\u636e\u5e93<br>\u63d0\u4f9b\u514d\u8d39\u7684\u4e8c\u7ea7\u57df\u540d<br>\u53ef\u81ea\u5b9a\u4e49\u5f00\u653e\u7aef\u53e3<br>\u652f\u6301SSH\u8bbf\u95ee<br>\u8981\u6c42\u662f\u6bcf3\u4e2a\u6708\u9700\u767b\u5f55\u4e00\u6b21\u63a7\u5236\u9762\u677f\u6216SSH,\u907f\u514d\u8d26\u53f7\u88ab\u56de\u6536<br>\u8bbf\u95ee\u5b98\u7f51\u27a1\ufe0f: https:\/\/www.serv00.com\/<\/p>\n\n\n\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u300c\u4e00\u4f11&#8217;s Blog\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/yixiu.icu\/posts\/gratis\/freevpsandvless\/<\/p>\n\n\n\n<p>\u4e8c\u3001ClouDNS\u57df\u540d\u6258\u7ba1\u5230serv00 <\/p>\n\n\n\n<p>\u6253\u5f00ClouDNS\u5b98\u7f51\u548cDevilWEB \u7f51\u7edc\u9762\u677f\uff08\u5728\u90ae\u4ef6\u91cc\u9762\u627e\u9762\u677f\u7684\u94fe\u63a5\uff0c\u7528\u8d26\u53f7\u5bc6\u7801\u767b\u5f55\uff09 <\/p>\n\n\n\n<p>\u5220\u9664ClouDNS\u4e2d\u57df\u540d\u6240\u6709\u7684DNS\u8bb0\u5f55 \u6258\u7ba1\u57df\u540d\u5230serv00 \u57df\u540d\u4f1a\u6709\u53cc\u5411\u89e3\u6790\u7684\u95ee\u9898\uff0c\u628a\u6258\u7ba1\u5230serv00\u4e4b\u540e\u81ea\u52a8\u751f\u6210\u7684DNS\u8bb0\u5f55\u5168\u90e8\u6dfb\u52a0\u5230ClouDNS\u4e2d \u540e\u7eed\u5982\u679c\u6709\u65b0\u7684\u8033\u673a\u57df\u540d\u89e3\u6790\u4e5f\u9700\u8981\u6dfb\u52a0\u5230ClouDNS<\/p>\n\n\n\n<p> \u4e09\u3001\u5229\u7528FreeSSL\u751f\u6210\u514d\u8d39\u8bc1\u4e66 \u6253\u5f00FreeSSL\u5b98\u7f51(\u6709\u8d26\u53f7\u767b\u5f55\uff0c\u6ca1\u8d26\u53f7\u6ce8\u518c\uff0c\u975e\u5e38\u7b80\u5355) \u89e3\u6790\u7684\u65f6\u5019\u6ce8\u610fserv00\u548cClouDNS\u90fd\u9700\u8981\u89e3\u6790 <\/p>\n\n\n\n<p>\u56db\u3001\ud83d\udd17\u642d\u5efavless\u8282\u70b9 <\/p>\n\n\n\n<p>1\uff0c\u914d\u7f6e\u3010\u5f00\u542f\u6743\u9650\u3011 \u7b2c\u4e00\u6b65\u9700\u8981\u505a\u7684\u5c31\u662f\u5f00\u542f\u53ef\u4ee5\u8fd0\u884c\u81ea\u5df1\u5e94\u7528\u7684\u6743\u9650\u3002<\/p>\n\n\n\n<p>Additional services -> Run your own applications -> Enabled <\/p>\n\n\n\n<p>\u5982\u679c\u4e0d\u5f00\u542f\u8fd9\u4e00\u9879\uff0c\u81ea\u5df1\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u90fd\u65e0\u6cd5\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650\u3002 <\/p>\n\n\n\n<p>2\uff0c\u5b89\u88c5PM2 PM2 \u662f\u4e00\u6b3e\u975e\u5e38\u4f18\u79c0\u7684node.js\u8fdb\u7a0b\u7ba1\u7406\u5de5\u5177\u3002\u53ef\u4ee5\u901a\u8fc7SSH\u7528\u4e0b\u9762\u7684\u6307\u4ee4\u4e00\u952e\u5b89\u88c5\u3002 <\/p>\n\n\n\n<p>bash &lt;(curl -s https:\/\/raw.githubusercontent.com\/k0baya\/alist_repl\/main\/serv00\/install-pm2.sh) <\/p>\n\n\n\n<p>\u590d\u5236shell \u4f7f\u7528pm2\uff0c\u8bf7\u76f4\u63a5\u7528\u8def\u5f84\u8c03\u7528\uff1a<\/p>\n\n\n\n<p>~\/.npm-global\/bin\/pm2\uff0c<\/p>\n\n\n\n<p>\u4f8b\u5982~\/.npm-global\/bin\/pm2 list \u5c31\u53ef\u4ee5\u770b\u5230\u81ea\u5df1\u6dfb\u52a0\u7684\u5e94\u7528\u3002 <\/p>\n\n\n\n<p>\u300c \u53e6\u5916\uff0c\u5728`SSH`\u4e2d\u901a\u8fc7\u4e0b\u9762\u7684\u6307\u4ee4\u5c31\u53ef\u4ee5\u5f00\u542f\u9875\u9762\u76d1\u63a7\u529f\u80fd\uff01\u4e0d\u9700\u8981\u53ef\u4ee5\u4e0d\u5f00 \u300d<\/p>\n\n\n\n<p> 3\uff0c\u5b89\u88c5Vless Vless\u662f\u4e00\u4e2a\u4ee3\u7406\u8282\u70b9\u5e94\u7528\uff0c\u53ef\u4ee5\u901a\u8fc7SSH\u7528\u4e0b\u9762\u7684\u6307\u4ee4\u4e00\u952e\u5b89\u88c5\u3002 <\/p>\n\n\n\n<p>\u8fdb\u5165\u9879\u76ee\u64cd\u4f5c\u76ee\u5f55,\u4ee5\u4e0b\u547d\u4ee4\u884c\u4e2d\u6362\u6210\u4f60\u7684\u57df\u540d cd ~\/domains\/ <\/p>\n\n\n\n<p> \u514b\u9686serv00-vless\u9879\u76ee\u5230<\/p>\n\n\n\n<p> git clone https:\/\/github.com\/qwer-search\/serv00-vless &amp;&amp; mv -f serv00-vless vless &amp;&amp; cd vless &amp;&amp; rm -f README.md<\/p>\n\n\n\n<p> \u5728serv00\u7684\u7ba1\u7406\u9875\u9762\u4e0a\u5f00\u542f\u4e00\u4e2a\u7aef\u53e3\uff0c<\/p>\n\n\n\n<p>Port reservation -> Add port\u6dfb\u52a0\u4e00\u4e2aTCP\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n\n\n\n<p>\u518d\u5728File Manager \u91cc\u9762\u627e\u5230Vless\u7684\u6587\u4ef6\u4e0b\u7684app.js\u6587\u4ef6\uff0c\u4fee\u6539\u91cc\u9762\u7684\u7aef\u53e3\u53f7\u4e3a\u521a\u521a\u6dfb\u52a0\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n\n\n\n<p>\u7c7b\u4f3c\u4e0b\u9762\u4fee\u6539\u4e3a\u4e8612345 <\/p>\n\n\n\n<p>const port = process.env.PORT || 12345; <\/p>\n\n\n\n<p>\u5b89\u88c5\u4f9d\u8d56 npm install \u590d\u5236shell \u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u4f7f\u7528PM2\u542f\u52a8\u5e76\u5b88\u62a4vless\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n<p> ~\/.npm-global\/bin\/pm2 start app.js &#8211;name vless <\/p>\n\n\n\n<p>\u63a5\u7740\u53bb\u4f60\u7684\u4ee3\u7406\u5ba2\u6237\u7aef\u8f6f\u4ef6\u4e2d\u624b\u52a8\u6dfb\u52a0vless\u914d\u7f6e\u5373\u53ef\uff1a<\/p>\n\n\n\n<p>  <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>key<\/td><td>Value<\/td><\/tr><tr><td>\u5730\u5740<\/td><td>Panel \u4e2d WWW Websites \u9009\u9879\u5361\u91cc\u7684\u4f60\u7684 Domain name <\/td><\/tr><tr><td>\u7aef\u53e3<\/td><td>\u4f60\u653e\u884c\u7684\u7aef\u53e3<\/td><\/tr><tr><td>\u7528\u6237 ID<\/td><td>37a0bd7c-8b9f-4693-8916-bd1e2da0a817<\/td><\/tr><tr><td>\u4f20\u8f93\u534f\u8bae<\/td><td>ws<\/td><\/tr><tr><td>\u4f2a\u88c5\u57df\u540d<\/td><td>\u540c\u5730\u5740<\/td><\/tr><tr><td>ws path<\/td><td>\/ <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>        \u4e5f\u53ef\u4ee5\u590d\u5236\u4ee5\u4e0bvless\u8282\u70b9\u4fe1\u606f\uff0c\u4fee\u6539&lt;\u57df\u540d\u5730\u5740>\u4e3aPanel \u4e2d WWW Websites \u9009\u9879\u5361\u91cc\u7684\u4f60\u7684 Domain name\uff0c&lt;\u7aef\u53e3>\u4e3a\u4f60\u653e\u884c\u7684\u7aef\u53e3\u5373\u53ef <\/p>\n\n\n\n<p>vless:\/\/37a0bd7c-8b9f-4693-8916-bd1e2da0a817@&lt;\u57df\u540d\u5730\u5740>:&lt;\u7aef\u53e3>?flow=&amp;security=none&amp;encryption=none&amp;type=ws&amp;host=&lt;\u57df\u540d\u5730\u5740>&amp;path=\/&amp;sni=&amp;fp=&amp;pbk=&amp;sid=#%E4%B8%80%E4%BC%91vless%EF%BC%8CTG%E7%BE%A4%EF%BC%9Ahttps:\/\/t.me\/yxjsjl <\/p>\n\n\n\n<p>\u4e0a\u8868\u6ca1\u6709\u7ed9\u51fa\u7684\u53ef\u4ee5\u4e0d\u586b\u3002 <\/p>\n\n\n\n<p>\u6211\u7528\u7684\u5ba2\u6237\u7aef\u662fv2rayU\uff0c\u6309\u7167\u8fd9\u4e2a\u914d\u7f6e\u5c31\u884c\u3002<\/p>\n\n\n\n<p>\u76ee\u524d\u6d4b\u8bd5\u4e0b\u6765\u8fde\u63a5\u4e0d\u662f\u5f88\u7a33\u5b9a\uff0c\u5ef6\u8fdf\u5ffd\u9ad8\u5ffd\u4f4e\uff0c\u6709300ms\u5de6\u53f3\u3002 <\/p>\n\n\n\n<p>\u7eaf\u51c0\u5ea6\u68c0\u6d4b 4\uff0c\u81ea\u52a8\u5316 \u542c\u8bf4serv00\u4f1a\u4e0d\u5b9a\u65f6\u91cd\u542f\u673a\u5668\uff0c\u6240\u4ee5\u6211\u4eec\u628aPM2\u6dfb\u52a0\u5f00\u673a\u81ea\u542f\u3002\u800c\u4e14serv00\u6bcf\u4e09\u4e2a\u6708\u5185\u5fc5\u987b\u8981\u6709\u4e00\u6b21\u767b\u5f55\u9762\u677f\u6216\u8005SSH\u8fde\u63a5\uff0c\u4e0d\u7136\u4f1a\u5220\u53f7\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u811a\u672c\u89e3\u51b3\u95ee\u9898\uff0c\u63a5\u4e0b\u6765\u6211\u4f1a\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n\n\n\n<p> \u81ea\u52a8\u7eed\u671f \u65b0\u5efaopt\u76ee\u5f55,\u5e76\u8fdb\u5165\u76ee\u5f55 <\/p>\n\n\n\n<p>mkdir ~\/opt <\/p>\n\n\n\n<p> \u65b0\u5efa auto-renew.sh \u811a\u672c\uff1a <\/p>\n\n\n\n<p>cat > auto-renew.sh &lt;&lt; EOF<\/p>\n\n\n\n<p> #!\/bin\/bash <br>while true; do <br>sshpass -p &#8216;\u5bc6\u7801&#8217; ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=\/dev\/null -tt \u7528\u6237\u540d@\u5730\u5740 &#8220;exit&#8221; &amp; <br>sleep 259200 #30\u5929\u4e3a259200\u79d2 <br>done EOF <\/p>\n\n\n\n<p>\u53e6\u5916\u8bb0\u5f97\u628a\u5176\u4e2d\u7684\u5bc6\u7801\u3001\u7528\u6237\u540d\u3001ssh\u7684\u5730\u5740\u4fee\u6539\u4e3a\u4f60\u81ea\u5df1\u7684\u3002 \u7ed9 auto-renew.sh\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650\uff1a<\/p>\n\n\n\n<p> chmod +x auto-renew.sh <\/p>\n\n\n\n<p>\u4f7f\u7528PM2\u542f\u52a8\uff1a<\/p>\n\n\n\n<p> ~\/.npm-global\/bin\/pm2 start .\/auto-renew.sh <\/p>\n\n\n\n<p> \u8fd9\u6837\u5c31\u4f1a\u6bcf\u9694\u4e00\u4e2a\u6708\u81ea\u52a8\u6267\u884c\u4e00\u6b21SSH\u8fde\u63a5\uff0c\u81ea\u5df1SSH\u81ea\u5df1\u8fdb\u884c\u7eed\u671f\u3002 \u81ea\u52a8\u542f\u52a8 \u5728serv00\u7684\u7ba1\u7406\u9875\u9762\u4e0a\u627e\u5230Cron jobs\u9009\u9879\u5361\uff0c\u4f7f\u7528Add cron job\u529f\u80fd\u6dfb\u52a0\u4efb\u52a1\uff0cSpecify time\u9009\u62e9After reboot\uff0c\u5373\u4e3a\u91cd\u542f\u540e\u8fd0\u884c\u3002Form type\u9009\u62e9Advanced\uff0cCommand\u5199\uff1a<\/p>\n\n\n\n<p> \/home\/\u4f60\u7684\u7528\u6237\u540d\/.npm-global\/bin\/pm2 resurrect <\/p>\n\n\n\n<p>\u6dfb\u52a0\u5b8c\u4e4b\u540e\uff0c\u5728SSH\u7a97\u53e3\u4fdd\u5b58PM2\u7684\u5f53\u524d\u4efb\u52a1\u5217\u8868\u5feb\u7167\uff1a<\/p>\n\n\n\n<p> ~\/.npm-global\/bin\/pm2 save <\/p>\n\n\n\n<p> \u8fd9\u6837\u6bcf\u6b21serv00\u4e0d\u5b9a\u65f6\u91cd\u542f\u4efb\u52a1\u65f6\uff0c\u90fd\u80fd\u81ea\u52a8\u8c03\u7528PM2\u8bfb\u53d6\u4fdd\u5b58\u7684\u4efb\u52a1\u5217\u8868\u5feb\u7167\uff0c\u6062\u590d\u4efb\u52a1\u5217\u8868\u3002\u5982\u679c\u5728\u4fdd\u5b58\u4e86\u4efb\u52a1\u5217\u8868\u5feb\u7167\u540e\u53c8\u6539\u53d8\u4e86\u4efb\u52a1PM2\u7684\u4efb\u52a1\u5217\u8868\uff0c\u9700\u8981\u91cd\u65b0\u6267\u884cpm2 save\u4ee5\u66f4\u65b0\u4efb\u52a1\u5217\u8868\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udf1f \u514d\u8d39\u865a\u62df\u4e3b\u673a &#8211; Serv00Serv00 \u662f\u4e00\u5bb6\u63d0\u4f9b\u514d\u8d39\u865a\u62df\u4e3b\u673a\u7684\u5382\u5546\u3002\u5b83\u7684\u514d\u8d39\u5957\u9910\u5305\u542b:3 [&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":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-wlzy"],"_links":{"self":[{"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":1,"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.62510360.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}