{"id":667324,"date":"2026-12-05T21:56:13","date_gmt":"2026-12-05T13:56:13","guid":{"rendered":"http:\/\/puo.cn\/?p=667324"},"modified":"2026-12-05T21:56:13","modified_gmt":"2026-12-05T13:56:13","slug":"%e6%95%b4%e7%90%86%e7%9a%84%e4%b8%80%e4%ba%9b-linux-vps%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=667324","title":{"rendered":"\u6574\u7406\u7684\u4e00\u4e9b Linux VPS\u811a\u672c"},"content":{"rendered":"<h2 id=\"sec-2\">Linux \u811a\u672c\u4e0e\u547d\u4ee4\u5408\u96c6<\/h2>\n<p>\u4ee5\u4e0b\u662f\u5e38\u7528\u7684 Linux \u811a\u672c\u548c\u547d\u4ee4\u96c6\u5408\uff0c\u6db5\u76d6 <strong>\u7cfb\u7edf\u4f18\u5316\u3001\u7f51\u7edc\u7ba1\u7406\u3001Docker \u5b89\u88c5\u3001VPS \u7ef4\u62a4<\/strong> \u7b49\u7528\u9014\u3002<\/p>\n<hr \/>\n<h3 id=\"sec-3\"><strong>\ud83d\udd27 \u7cfb\u7edf\u4f18\u5316 &amp; \u7ba1\u7406<\/strong><\/h3>\n<h4 id=\"sec-4\"><strong>1. \u5f00\u542f Swap \u865a\u62df\u5185\u5b58<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>wget https:\/\/www.moerats.com\/usr\/shell\/swap.sh &amp;&amp; bash swap.sh\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-5\"><strong>2. TCP \u7f51\u7edc\u4f18\u5316<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>wget http:\/\/sh.nekoneko.cloud\/tools.sh -O tools.sh &amp;&amp; bash tools.sh\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-6\"><strong>3. \u56fd\u5185 DD \u91cd\u88c5\u7cfb\u7edf\uff08Debian 12\uff09<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>wget --no-check-certificate -qO InstallNET.sh 'https:\/\/raw.githubusercontent.com\/leitbogioro\/Tools\/master\/Linux_reinstall\/InstallNET.sh' &amp;&amp; chmod a+x InstallNET.sh &amp;&amp; bash InstallNET.sh -debian 12 -pwd '\u4f60\u7684\u5bc6\u7801'\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-7\"><strong>4. NetCup VPS \u786c\u76d8\u6269\u5bb9<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>growpart \/dev\/vda 3\r\nresize2fs \/dev\/vda3\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<hr \/>\n<h3 id=\"sec-8\"><strong>\ud83c\udf10 \u7f51\u7edc &amp; IP \u7ba1\u7406<\/strong><\/h3>\n<h4 id=\"sec-9\"><strong>1. IP \u89e3\u9501\u68c0\u6d4b\uff08\u6d41\u5a92\u4f53\/\u533a\u57df\u68c0\u6d4b\uff09<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>bash &lt;(curl -sL IP.Check.Place)\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<p>\u6216<\/p>\n<div class=\"code-block\">\n<pre><code>bash &lt;(curl -L -s check.unlock.media)\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-10\"><strong>2. \u89e3\u51b3 BandwagonHost (BWG) VPS DNS \u89e3\u6790\u95ee\u9898<\/strong><\/h4>\n<h5><strong>\u5199\u5165 DNS \u914d\u7f6e<\/strong><\/h5>\n<div class=\"code-block\">\n<pre><code>sudo tee \/etc\/resolv.conf &lt;&lt;EOF\r\nnameserver 8.8.8.8\r\nnameserver 1.1.1.1\r\nnameserver 2001:4860:4860::8844\r\nnameserver 2606:4700:4700::1111\r\nEOF\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h5><strong>\u9501\u5b9a DNS \u914d\u7f6e\uff08\u9632\u6b62\u88ab\u4fee\u6539\uff09<\/strong><\/h5>\n<div class=\"code-block\">\n<pre><code>sudo chattr +i \/etc\/resolv.conf\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h5><strong>\u89e3\u9501 DNS \u914d\u7f6e<\/strong><\/h5>\n<div class=\"code-block\">\n<pre><code>sudo chattr -i \/etc\/resolv.conf\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<hr \/>\n<h3 id=\"sec-11\"><strong>\ud83d\udee0\ufe0f \u9762\u677f &amp; \u5de5\u5177<\/strong><\/h3>\n<h4 id=\"sec-12\"><strong>1. X-UI \u9762\u677f\u5b89\u88c5\uff08FranzKafkaYu \u7248\uff09<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>bash &lt;(curl -Ls https:\/\/raw.githubusercontent.com\/FranzKafkaYu\/x-ui\/master\/install.sh)\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-13\"><strong>2. 3X-UI \u9762\u677f\u5b89\u88c5\uff08MHSanaei \u7248\uff09<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>bash &lt;(curl -Ls https:\/\/raw.githubusercontent.com\/MHSanaei\/3x-ui\/refs\/tags\/v2.5.8\/install.sh)\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-14\"><strong>3. Docker \u4e00\u952e\u5b89\u88c5<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>curl -fsSL https:\/\/get.docker.com -o get-docker.sh &amp;&amp; sudo sh get-docker.sh\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-15\"><strong>4. \u79d1\u6280 Lion \u811a\u672c\u5408\u96c6<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>curl -sS -O https:\/\/kejilion.pro\/kejilion.sh &amp;&amp; chmod +x kejilion.sh &amp;&amp; .\/kejilion.sh\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<h4 id=\"sec-16\"><strong>5. \u878d\u5408\u602a\u6d4b\u8bd5\u811a\u672c\uff08ECS \u7efc\u5408\u68c0\u6d4b\uff09<\/strong><\/h4>\n<div class=\"code-block\">\n<pre><code>bash &lt;(wget -qO- --no-check-certificate https:\/\/gitlab.com\/spiritysdx\/za\/-\/raw\/main\/ecs.sh)\r\n<\/code><\/pre>\n<p><button class=\"code-copy\" title=\"\u590d\u5236\u4ee3\u7801\" type=\"button\" aria-label=\"\u590d\u5236\u4ee3\u7801\"><\/button><\/div>\n<hr \/>\n<h4 id=\"sec-17\"><strong>\ud83d\udccc \u6ce8\u610f\u4e8b\u9879<\/strong><\/h4>\n<ul>\n<li><strong>\u90e8\u5206\u811a\u672c\u9700\u8981 <code>root<\/code> \u6743\u9650<\/strong>\uff0c\u5efa\u8bae\u4f7f\u7528 <code>sudo -i<\/code> \u6216 <code>su root<\/code> \u5207\u6362\u81f3\u7ba1\u7406\u5458\u8fd0\u884c\u3002<\/li>\n<li><strong>\u8c28\u614e\u6267\u884c\u6765\u6e90\u4e0d\u660e\u7684\u811a\u672c<\/strong>\uff0c\u5efa\u8bae\u5148\u68c0\u67e5\u811a\u672c\u5185\u5bb9\u518d\u8fd0\u884c\u3002<\/li>\n<li><strong>\u90e8\u5206\u811a\u672c\u53ef\u80fd\u4f9d\u8d56 <code>wget<\/code> \u6216 <code>curl<\/code><\/strong>\uff0c\u786e\u4fdd\u7cfb\u7edf\u5df2\u5b89\u88c5\uff1a<\/li>\n<\/ul>\n<div class=\"code-block\">\n<pre><code>apt install -y wget curl  # Debian\/Ubuntu\r\nyum install -y wget curl  # CentOS\r\n<\/code><\/pre>\n<div class=\"code-block\">\n<pre><code><\/code><\/pre>\n<\/div>\n<\/div>\n<hr \/>\n<p>\u6574\u7406\u5b8c\u6bd5\uff0c\u5efa\u8bae\u6536\u85cf\u5907\u7528\uff01 \ud83d\ude80<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u811a\u672c\u4e0e\u547d\u4ee4\u5408\u96c6 \u4ee5\u4e0b\u662f\u5e38\u7528\u7684 Linux \u811a\u672c\u548c\u547d\u4ee4\u96c6\u5408\uff0c\u6db5\u76d6 \u7cfb\u7edf\u4f18\u5316\u3001\u7f51\u7edc\u7ba1\u7406\u3001Docker \u5b89\u88c5\u3001VPS \u7ef4\u62a4 \u7b49\u7528\u9014\u3002 \ud83d\udd27 \u7cfb\u7edf\u4f18\u5316 &amp; \u7ba1\u7406 1. \u5f00\u542f Swap \u865a\u62df\u5185\u5b58 wget https:\/\/www.m&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[167,700,931],"topic":[],"class_list":["post-667324","post","type-post","status-publish","format-standard","hentry","category-128","tag-linux","tag-sh","tag-swap"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/667324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=667324"}],"version-history":[{"count":2,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/667324\/revisions"}],"predecessor-version":[{"id":667326,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/667324\/revisions\/667326"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=667324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=667324"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=667324"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=667324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}