{"id":18362,"date":"2025-04-19T00:47:34","date_gmt":"2025-04-18T16:47:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/18362.html"},"modified":"2025-04-19T00:47:34","modified_gmt":"2025-04-18T16:47:34","slug":"vps%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%87%8d%e8%a3%85linux%e7%b3%bb%e7%bb%9f%e4%bc%98%e5%8c%96%e5%b9%b6%e5%ae%89%e8%a3%85%e4%b8%ad%e6%96%87%e7%89%88portainer%e7%ae%a1%e7%90%86docker","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/18362.html","title":{"rendered":"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\u4e00\u3001DD\u91cd\u88c5\u7cfb\u7edf<\/li>\n<li>\n<ul>\n<li>1.1 \u4e0b\u8f7d&#xff08;\u5f53\u524d\u7cfb\u7edf\u662f Linux&#xff09;<\/li>\n<li>1.2 \u4e0b\u8f7d&#xff08;\u5f53\u524d\u7cfb\u7edf\u662f Windows&#xff09;<\/li>\n<li>1.3 \u5b89\u88c5 Linux<\/li>\n<li>\n<ul>\n<li>\u53ef\u9009\u53c2\u6570<\/li>\n<\/ul>\n<\/li>\n<li>1.4 \u5b9e\u64cd<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u8bbe\u7f6e\u548c\u5f00\u542f\u865a\u62df\u5185\u5b58swap<\/li>\n<li>\n<ul>\n<li>2.1 \u4ecb\u7ecd<\/li>\n<li>2.2 \u8bbe\u7f6e\u6b65\u9aa4<\/li>\n<li>2.3 \u4e00\u952e\u547d\u4ee4<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u5f00\u542fTCP BBR\u62e5\u585e\u63a7\u5236\u7b97\u6cd5&#xff0c;\u52a0\u901f\u7f51\u7edc\u8bbf\u95ee<\/li>\n<li>\n<ul>\n<li>3.1 \u4ec0\u4e48\u662fBBR<\/li>\n<li>3.2 \u64cd\u4f5c\u6b65\u9aa4<\/li>\n<li>3.3 Linux\u7f51\u7edc\u4f18\u5316TCP\u7a97\u53e3\u8c03\u4f18<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001Fail2banSSH\u9632\u5fa1\u811a\u672c<\/li>\n<li>\u4e94\u3001\u6302\u8f7d\u6570\u636e\u76d8<\/li>\n<li>\n<ul>\n<li>5.1 \u67e5\u770b\u78c1\u76d8\u4fe1\u606f<\/li>\n<li>5.2 \u786c\u76d8\u5b9e\u4f53\u4f7f\u7528\u60c5\u51b5<\/li>\n<li>5.3 \u663e\u793a\u78c1\u76d8\u5206\u533a\u6302\u8f7d\u60c5\u51b5<\/li>\n<li>5.4 \u683c\u5f0f\u5316\u6570\u636e\u76d8 &#xff08;\u6ce8\u610f\u6570\u636e\u5b89\u5168&#xff09;<\/li>\n<li>5.5 \u6302\u8f7d\u78c1\u76d8\u5230\u76ee\u5f55<\/li>\n<li>5.6 \u67e5\u770b\u6302\u8f7d\u662f\u5426\u6210\u529f<\/li>\n<li>5.7 \u914d\u7f6e\u91cd\u542f\u81ea\u52a8\u6302\u8f7d<\/li>\n<\/ul>\n<\/li>\n<li>\u516d\u3001\u83b7\u53d6Linux\u6027\u80fd\u548c\u786c\u4ef6\u4fe1\u606f<\/li>\n<li>\n<ul>\n<li>6.1 \u878d\u5408\u602a\u6d4b\u8bc4\u811a\u672c<\/li>\n<li>6.2 YABS<\/li>\n<\/ul>\n<\/li>\n<li>\u4e03\u3001\u5b89\u88c5docker<\/li>\n<li>\n<ul>\n<li>7.1 \u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c\u81ea\u52a8\u5b89\u88c5<\/li>\n<li>7.2 \u624b\u52a8\u5b89\u88c5<\/li>\n<li>7.3 \u5378\u8f7d docker<\/li>\n<li>\u516b\u3001\u5b89\u88c5\u4e2d\u6587\u7248portainer<\/li>\n<li>8.1 \u4e00\u952e\u5b89\u88c5\u4ee3\u7801<\/li>\n<li>8.2 163\u955c\u50cf\u5b89\u88c5<\/li>\n<li>8.3 Docker Desktop on Windows \u5b89\u88c5\u4e2d\u6587 Portainer<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u4e3a\u6211\u81ea\u5df1\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u53c2\u8003\u7f51\u4e0a\u8d44\u6599\u8fdb\u884c\u7684\u6b65\u9aa4&#xff0c;\u5728\u6b64\u505a\u4e2a\u5907\u4efd\u8bb0\u5f55&#xff0c;\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u6709\u540c\u6837\u9700\u6c42\u7684\u4f19\u4f34<\/p>\n<h2>\u4e00\u3001DD\u91cd\u88c5\u7cfb\u7edf<\/h2>\n<p>\u8fd9\u91cc\u4f7f\u7528\u7684\u662f https:\/\/github.com\/bin456789\/reinstall \u5927\u4f6c\u7684DD\u811a\u672c\u3002<\/p>\n<p>[!WARNING] \u274c \u672c\u811a\u672c\u4e0d\u652f\u6301 OpenVZ\u3001LXC \u865a\u62df\u673a<\/p>\n<p>\u8bf7\u6539\u7528 https:\/\/github.com\/LloydAsp\/OsMutation<\/p>\n<h3>1.1 \u4e0b\u8f7d&#xff08;\u5f53\u524d\u7cfb\u7edf\u662f Linux&#xff09;<\/h3>\n<p>\u56fd\u5916\u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-O<\/span> https:\/\/raw.githubusercontent.com\/bin456789\/reinstall\/main\/reinstall.sh <span class=\"token operator\">||<\/span> <span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-O<\/span> reinstall.sh<\/p>\n<p>\u56fd\u5185\u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-O<\/span> https:\/\/gitlab.com\/bin456789\/reinstall\/-\/raw\/main\/reinstall.sh <span class=\"token operator\">||<\/span> <span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-O<\/span> reinstall.sh<\/p>\n<h3>1.2 \u4e0b\u8f7d&#xff08;\u5f53\u524d\u7cfb\u7edf\u662f Windows&#xff09;<\/h3>\n<p>&#xff01;&#xff01;&#xff01;\u8bf7\u5148\u5173\u95ed Windows Defender \u7684 \u5b9e\u65f6\u4fdd\u62a4 \u529f\u80fd\u3002\u8be5\u529f\u80fd\u4f1a\u963b\u6b62 certutil \u4e0b\u8f7d\u4efb\u4f55\u6587\u4ef6\u3002&#xff01;&#xff01;&#xff01;<\/p>\n<p>\u89e3\u51b3 Windows 7 \u4e0b\u65e0\u6cd5\u4e0b\u8f7d\u811a\u672c<\/p>\n<p>\u7531\u4e8e\u4e0d\u652f\u6301 TLS 1.2\u3001SHA-256\u3001\u6839\u8bc1\u4e66\u6ca1\u6709\u66f4\u65b0\u7b49\u539f\u56e0&#xff0c;Vista&#xff0c;7 \u548c Server 2008 (R2) \u53ef\u80fd\u65e0\u6cd5\u81ea\u52a8\u4e0b\u8f7d\u811a\u672c&#xff0c;\u56e0\u6b64\u9700\u8981\u624b\u52a8\u4e0b\u8f7d&#xff0c;\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b&#xff1a;<\/p>\n<p>\u7528 IE \u4e0b\u8f7d (\u5148\u5728 IE \u9ad8\u7ea7\u8bbe\u7f6e\u91cc\u542f\u7528 TLS 1.2)&#xff0c;\u6216\u8005\u901a\u8fc7\u8fdc\u7a0b\u684c\u9762&#xff0c;\u5c06\u8fd9\u4e24\u4e2a\u6587\u4ef6\u4fdd\u5b58\u5230\u540c\u4e00\u4e2a\u76ee\u5f55<\/p>\n<ul>\n<li>\n<p>https:\/\/raw.githubusercontent.com\/bin456789\/reinstall\/main\/reinstall.bat<\/p>\n<\/li>\n<li>\n<p>https:\/\/www.cygwin.com\/setup-x86.exe<\/p>\n<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u65f6\u8fd0\u884c\u4e0b\u8f7d\u7684 reinstall.bat<\/p>\n<p>\u56fd\u5916\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>certutil <span class=\"token parameter variable\">-urlcache<\/span> <span class=\"token parameter variable\">-f<\/span> <span class=\"token parameter variable\">-split<\/span> https:\/\/raw.githubusercontent.com\/bin456789\/reinstall\/main\/reinstall.bat<\/p>\n<p>\u56fd\u5185\u670d\u52a1\u5668&#xff1a;<\/p>\n<p>certutil <span class=\"token parameter variable\">-urlcache<\/span> <span class=\"token parameter variable\">-f<\/span> <span class=\"token parameter variable\">-split<\/span> https:\/\/gitlab.com\/bin456789\/reinstall\/-\/raw\/main\/reinstall.bat<\/p>\n<h3>1.3 \u5b89\u88c5 Linux<\/h3>\n<ul>\n<li>\u7528\u6237\u540d root \u9ed8\u8ba4\u5bc6\u7801 123&#064;&#064;&#064;&#xff0c;\u9996\u6b21\u5f00\u673a\u53ef\u80fd\u8981\u7b49\u51e0\u5206\u949f\u624d\u80fd\u6210\u529f\u767b\u5f55<\/li>\n<li>\u5b89\u88c5\u6700\u65b0\u7248\u53ef\u4e0d\u8f93\u5165\u7248\u672c\u53f7<\/li>\n<li>\u6700\u5927\u5316\u5229\u7528\u78c1\u76d8\u7a7a\u95f4&#xff1a;\u4e0d\u542b boot \u5206\u533a&#xff08;Fedora \u4f8b\u5916&#xff09;&#xff0c;\u4e0d\u542b swap \u5206\u533a<\/li>\n<li>\u81ea\u52a8\u6839\u636e\u673a\u5668\u7c7b\u578b\u9009\u62e9\u4e0d\u540c\u7684\u4f18\u5316\u5185\u6838&#xff0c;\u4f8b\u5982 Cloud\u3001HWE \u5185\u6838<\/li>\n<li>\u5b89\u88c5 Red Hat \u65f6\u9700\u586b\u5199 https:\/\/access.redhat.com\/downloads\/content\/rhel \u5f97\u5230\u7684 qcow2 \u955c\u50cf\u94fe\u63a5<\/li>\n<li>\u91cd\u88c5\u540e\u5982\u9700\u4fee\u6539 SSH \u7aef\u53e3\u6216\u8005\u6539\u6210\u5bc6\u94a5\u767b\u5f55&#xff0c;\u6ce8\u610f\u8fd8\u8981\u4fee\u6539 \/etc\/ssh\/sshd_config.d\/ \u91cc\u9762\u7684\u6587\u4ef6<\/li>\n<\/ul>\n<p><span class=\"token function\">bash<\/span> reinstall.sh centos      <span class=\"token number\">9<\/span><br \/>\n                  anolis      <span class=\"token number\">7<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">8<\/span><br \/>\n                  almalinux   <span class=\"token number\">8<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">9<\/span><br \/>\n                  rocky       <span class=\"token number\">8<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">9<\/span><br \/>\n                  redhat      <span class=\"token number\">8<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">9<\/span>   <span class=\"token parameter variable\">&#8211;img<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;http:\/\/xxx.com\/xxx.qcow2&#039;<\/span><br \/>\n                  opencloudos <span class=\"token number\">8<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">9<\/span><br \/>\n                  oracle      <span class=\"token number\">7<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">8<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">9<\/span><br \/>\n                  fedora      <span class=\"token number\">40<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">41<\/span><br \/>\n                  nixos       <span class=\"token number\">24.05<\/span><br \/>\n                  debian      <span class=\"token number\">9<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">10<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">11<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">12<\/span><br \/>\n                  openeuler   <span class=\"token number\">20.03<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">22.03<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">24.03<\/span><br \/>\n                  alpine      <span class=\"token number\">3.17<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">3.18<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">3.19<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">3.20<\/span><br \/>\n                  opensuse    <span class=\"token number\">15.5<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">15.6<\/span><span class=\"token operator\">|<\/span>tumbleweed<br \/>\n                  ubuntu      <span class=\"token number\">16.04<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">18.04<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">20.04<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">22.04<\/span><span class=\"token operator\">|<\/span><span class=\"token number\">24.04<\/span> <span class=\"token punctuation\">[<\/span>&#8211;minimal<span class=\"token punctuation\">]<\/span><br \/>\n                  kali<br \/>\n                  arch<br \/>\n                  gentoo<\/p>\n<h4>\u53ef\u9009\u53c2\u6570<\/h4>\n<ul>\n<li>&#8211;password PASSWORD \u8bbe\u7f6e\u5bc6\u7801<\/li>\n<li>&#8211;ssh-port PORT \u4fee\u6539 SSH \u7aef\u53e3&#xff08;\u5b89\u88c5\u671f\u95f4\u89c2\u5bdf\u65e5\u5fd7\u7528&#xff0c;\u4e5f\u7528\u4e8e\u65b0\u7cfb\u7edf&#xff09;<\/li>\n<li>&#8211;web-port PORT \u4fee\u6539 Web \u7aef\u53e3&#xff08;\u5b89\u88c5\u671f\u95f4\u89c2\u5bdf\u65e5\u5fd7\u7528&#xff09;<\/li>\n<li>&#8211;hold 2 \u5b89\u88c5\u7ed3\u675f\u540e\u4e0d\u91cd\u542f&#xff0c;\u6b64\u65f6\u53ef\u4ee5 SSH \u767b\u5f55\u4fee\u6539\u7cfb\u7edf\u5185\u5bb9&#xff0c;\u7cfb\u7edf\u6302\u8f7d\u5728 \/os (\u6b64\u529f\u80fd\u4e0d\u652f\u6301 Debian\/Kali)<\/li>\n<\/ul>\n<p>[!TIP] \u5b89\u88c5 Debian\/Kali \u65f6&#xff0c;x86 \u53ef\u901a\u8fc7\u540e\u53f0 VNC \u67e5\u770b\u5b89\u88c5\u8fdb\u5ea6&#xff0c;ARM \u53ef\u901a\u8fc7\u4e32\u884c\u63a7\u5236\u53f0\u67e5\u770b\u5b89\u88c5\u8fdb\u5ea6\u3002<\/p>\n<p>\u5b89\u88c5\u5176\u5b83\u7cfb\u7edf\u65f6&#xff0c;\u53ef\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f&#xff08;SSH\u3001HTTP 80 \u7aef\u53e3\u3001\u540e\u53f0 VNC\u3001\u4e32\u884c\u63a7\u5236\u53f0&#xff09;\u67e5\u770b\u5b89\u88c5\u8fdb\u5ea6\u3002 \u5373\u4f7f\u5b89\u88c5\u8fc7\u7a0b\u51fa\u9519&#xff0c;\u4e5f\u80fd\u901a\u8fc7 SSH \u8fd0\u884c \/trans.sh alpine \u5b89\u88c5\u5230 Alpine\u3002<\/p>\n<p>  \u5b9e\u9a8c\u6027\u529f\u80fd <\/p>\n<p>\u4e91\u955c\u50cf\u5b89\u88c5 Debian<\/p>\n<ul>\n<li>\u9002\u5408\u4e8e CPU \u8f83\u6162\u7684\u673a\u5668<\/li>\n<\/ul>\n<p>bash bash reinstall.sh debian &#8211;ci <\/p>\n<p>ISO \u5b89\u88c5 CentOS, AlmaLinux, Rocky, Fedora<\/p>\n<ul>\n<li>\u4ec5\u652f\u6301\u5185\u5b58\u5927\u4e8e 2G \u4e14\u4e3a\u52a8\u6001 IP \u7684\u673a\u5668<\/li>\n<li>\u5bc6\u7801 123&#064;&#064;&#064;&#xff0c;SSH \u7aef\u53e3 22&#xff0c;\u4e0d\u652f\u6301\u7528\u53c2\u6570\u4fee\u6539<\/li>\n<\/ul>\n<p>bash bash reinstall.sh centos &#8211;installer <\/p>\n<p>ISO \u5b89\u88c5 Ubuntu<\/p>\n<ul>\n<li>\u4ec5\u652f\u6301\u5185\u5b58\u5927\u4e8e 1G \u4e14\u4e3a\u52a8\u6001 IP \u7684\u673a\u5668<\/li>\n<li>\u5bc6\u7801 123&#064;&#064;&#064;&#xff0c;SSH \u7aef\u53e3 22&#xff0c;\u4e0d\u652f\u6301\u7528\u53c2\u6570\u4fee\u6539<\/li>\n<\/ul>\n<p>bash bash reinstall.sh ubuntu &#8211;installer <\/p>\n<h3>1.4 \u5b9e\u64cd<\/h3>\n<p>\u5728\u672c\u6587\u4e2d&#xff0c;\u6211\u4eec\u5b89\u88c5debian12\u7cfb\u7edf&#xff0c;\u5e76\u4e14\u81ea\u5b9a\u4e49ssh\u7aef\u53e3\u548c\u5bc6\u7801&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">bash<\/span> reinstall.sh debian <span class=\"token number\">12<\/span> <span class=\"token parameter variable\">&#8211;password<\/span> <span class=\"token operator\">&lt;<\/span>\u81ea\u5b9a\u4e49\u5bc6\u7801<span class=\"token operator\">&gt;<\/span> &#8211;ssh-port <span class=\"token operator\">&lt;<\/span>\u81ea\u5b9a\u7aef\u53e3<span class=\"token operator\">&gt;<\/span><\/p>\n<p>\u7b49\u5f85\u547d\u4ee4\u8dd1\u5b8c\u540e&#xff0c;\u4f7f\u7528 reboot \u91cd\u542f\u7cfb\u7edf&#xff0c;\u8ba9\u7cfb\u7edf\u81ea\u52a8\u5f00\u59cb\u5b89\u88c5&#xff0c;\u5927\u7ea610\u5206\u949f\u540e&#xff0c;\u4f7f\u7528\u521a\u624d\u8bbe\u5b9a\u7684\u7aef\u53e3\u548c\u5bc6\u7801ssh\u8fde\u4e0a\u7cfb\u7edf\u3002<\/p>\n<p>\u7531\u4e8e\u521a\u91cd\u88c5\u7684\u7cfb\u7edf\u53ef\u80fd\u6709\u4e9b\u8f6f\u4ef6\u5305\u4e0d\u662f\u6700\u65b0\u7684&#xff0c;\u8fd9\u65f6\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528apt update \u548c apt upgrade\u547d\u4ee4\u66f4\u65b0\u4e0b&#xff1a;<\/p>\n<p><span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">apt<\/span> upgrade <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>apt update\u547d\u4ee4 \u8fd9\u662f\u4e00\u4e2a\u4e3b\u8981\u5728\u65b0\u7cfb\u7edf\u5b89\u88c5\u4e4b\u540e\u6216\u5b89\u88c5\u65b0\u8f6f\u4ef6\u5305\u4e4b\u524d\u8c03\u7528\u7684\u547d\u4ee4\u3002apt update \u547d\u4ee4\u66f4\u65b0 Linux \u7cfb\u7edf\u7684\u5305\u7d22\u5f15\u6216\u5305\u5217\u8868\u3002\u5b83\u4e0d\u4f1a\u5347\u7ea7\u4efb\u4f55\u8f6f\u4ef6\u5305\u3002\u5b83\u4e3a\u60a8\u7cfb\u7edf\u4e0a\u7684 PPA \u548c\u5b58\u50a8\u5e93\u83b7\u53d6\u6700\u65b0\u7684\u8f6f\u4ef6\u5305\u5217\u8868&#xff0c;\u5e76\u786e\u4fdd\u5b83\u4eec\u662f\u6700\u65b0\u7684\u3002<\/p>\n<p>apt upgrade\u547d\u4ee4 apt upgrade\u547d\u4ee4\u5c06\u8f6f\u4ef6\u5305\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c&#xff0c;\u5e76\u5728\u9700\u8981\u5b83\u4eec\u4f5c\u4e3a\u4f9d\u8d56\u9879\u65f6\u5b89\u88c5\u65b0\u8f6f\u4ef6\u5305\u3002\u5b83\u4e0d\u4f1a\u5220\u9664\u4efb\u4f55\u5305&#xff0c;\u5982\u679c\u6307\u5b9a\u8981\u5220\u9664\u4efb\u4f55\u5305&#xff0c;\u5b83\u4f1a\u8df3\u8fc7\u5b83\u4eec\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916&#xff0c;\u8fd8\u53ef\u4ee5\u5b89\u88c5\u4e00\u4e9b\u57fa\u7840\u7684\u8f6f\u4ef6\u5305\u548c\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">wget<\/span> <span class=\"token function\">curl<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> net-tools <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164731-68028223ce7c6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h2>\u4e8c\u3001\u8bbe\u7f6e\u548c\u5f00\u542f\u865a\u62df\u5185\u5b58swap<\/h2>\n<h3>2.1 \u4ecb\u7ecd<\/h3>\n<p>SWAP\u662fLinux\u7cfb\u7edf\u4e2d\u7684\u4e00\u79cd\u865a\u62df\u5185\u5b58&#xff0c;\u7528\u4e8e\u6269\u5c55\u7269\u7406\u5185\u5b58\u7684\u5bb9\u91cf\u3002\u5f53\u7cfb\u7edf\u5185\u5b58\u4e0d\u8db3\u65f6&#xff0c;SWAP\u4f1a\u5c06\u90e8\u5206\u78c1\u76d8\u7a7a\u95f4\u7528\u4f5c\u865a\u62df\u5185\u5b58&#xff0c;\u4ee5\u652f\u6301\u66f4\u591a\u7684\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u3002\u5728VPS\u670d\u52a1\u5668\u73af\u5883\u4e2d&#xff0c;SWAP\u7684\u914d\u7f6e\u540c\u6837\u81f3\u5173\u91cd\u8981&#xff0c;\u5b83\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u63d0\u9ad8\u7cfb\u7edf\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<h3>2.2 \u8bbe\u7f6e\u6b65\u9aa4<\/h3>\n<li>\u6253\u5f00SWAP\u529f\u80fd&#xff1a;\u5728Linux\u7cfb\u7edf\u4e2d&#xff0c;\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5f00\u542fSWAP\u529f\u80fd&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> swapoff <span class=\"token parameter variable\">-a<\/span><\/p>\n<li>\u521b\u5efaSWAP\u6587\u4ef6&#xff1a;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u6307\u5b9a\u5927\u5c0f\u7684SWAP\u6587\u4ef6&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> fallocate <span class=\"token parameter variable\">-l<\/span> <span class=\"token operator\">&lt;<\/span>size<span class=\"token operator\">&gt;<\/span> \/swapfile<\/p>\n<p>\u5176\u4e2d&#xff0c;\u4ee3\u8868SWAP\u6587\u4ef6\u7684\u5927\u5c0f&#xff0c;\u5355\u4f4d\u4e3aGB\u3002\u4f8b\u5982&#xff0c;\u8981\u521b\u5efa\u4e00\u4e2a2GB\u7684SWAP\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u8f93\u5165&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> fallocate <span class=\"token parameter variable\">-l<\/span> 2G \/swapfile<\/p>\n<li>\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650&#xff1a;\u4e3a\u4e86\u786e\u4fddSWAP\u6587\u4ef6\u7684\u5b89\u5168\u6027&#xff0c;\u9700\u8981\u8bbe\u7f6e\u6587\u4ef6\u7684\u6743\u9650&#xff0c;\u4ec5\u5141\u8bb8root\u7528\u6237\u8bfb\u5199&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> \/swapfile<\/p>\n<li>\u542f\u7528SWAP\u6587\u4ef6&#xff1a;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5c06SWAP\u6587\u4ef6\u542f\u7528&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkswap<\/span> \/swapfile<\/p>\n<li>\u542f\u7528SWAP\u529f\u80fd&#xff1a;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5f00\u542fSWAP\u529f\u80fd&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">swapon<\/span> \/swapfile<\/p>\n<li>\u6301\u4e45\u5316SWAP\u914d\u7f6e&#xff1a;\u4e3a\u4e86\u786e\u4fddSWAP\u914d\u7f6e\u5728\u7cfb\u7edf\u91cd\u542f\u540e\u4f9d\u7136\u6709\u6548&#xff0c;\u9700\u8981\u5c06\u914d\u7f6e\u5199\u5165\u78c1\u76d8\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b8c\u6210\u6b64\u64cd\u4f5c&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;\/swapfile none swap sw 0 0&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> \/etc\/fstab<\/p>\n<li>\u76d1\u63a7SWAP\u4f7f\u7528\u60c5\u51b5&#xff1a;\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u53ef\u4ee5\u67e5\u770bSWAP\u7684\u4f7f\u7528\u60c5\u51b5&#xff1a;<\/li>\n<p><span class=\"token function\">free<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p>\u5b8c\u6574\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> swapoff <span class=\"token parameter variable\">-a<\/span><br \/>\n<span class=\"token function\">sudo<\/span> fallocate <span class=\"token parameter variable\">-l<\/span> 2G \/swapfile<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> \/swapfile<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mkswap<\/span> \/swapfile<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">swapon<\/span> \/swapfile<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#039;\/swapfile none swap sw 0 0&#039;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> \/etc\/fstab<br \/>\n<span class=\"token function\">free<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164731-68028223f0e48.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2.3 \u4e00\u952e\u547d\u4ee4<\/h3>\n<p>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e00\u952e\u547d\u4ee4\u4e00\u952e\u8bbe\u7f6eswap<\/p>\n<p><span class=\"token function\">wget<\/span> https:\/\/www.moerats.com\/usr\/shell\/swap.sh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">bash<\/span> swap.sh<\/p>\n<hr \/>\n<h2>\u4e09\u3001\u5f00\u542fTCP BBR\u62e5\u585e\u63a7\u5236\u7b97\u6cd5&#xff0c;\u52a0\u901f\u7f51\u7edc\u8bbf\u95ee<\/h2>\n<h3>3.1 \u4ec0\u4e48\u662fBBR<\/h3>\n<p>BBR \u662f\u4e00\u79cd\u62e5\u585e\u63a7\u5236\u7b97\u6cd5&#xff0c; \u7531Google\u8bbe\u8ba1&#xff0c;\u53ef\u4ee5\u5728 Linux \u4e0a\u542f\u7528 TCP BBR \u53ef\u4ee5\u663e\u8457\u6539\u5584\u670d\u52a1\u5668\u6574\u4f53\u7f51\u7edc\u4f20\u8f93\u6548\u7387\u3002 \u3000\u3000\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Linux \u4f7f\u7528\u4f20\u7edf\u7684 Reno \u548c CUBIC \u62e5\u585e\u63a7\u5236\u7b97\u6cd5\u3002 \u3000\u3000BBR\u89e3\u51b3\u4e86\u4e24\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<li>\u5728\u6709\u4e00\u5b9a\u4e22\u5305\u7387\u7684\u7f51\u7edc\u94fe\u8def\u4e0a\u5145\u5206\u5229\u7528\u5e26\u5bbd\u3002\u975e\u5e38\u9002\u5408\u9ad8\u5ef6\u8fdf&#xff0c;\u9ad8\u5e26\u5bbd\u7684\u7f51\u7edc\u94fe\u8def\u3002<\/li>\n<li>\u964d\u4f4e\u7f51\u7edc\u94fe\u8def\u4e0a\u7684buffer\u5360\u7528\u7387&#xff0c;\u4ece\u800c\u964d\u4f4e\u5ef6\u8fdf\u3002\u975e\u5e38\u9002\u5408\u6162\u901f\u63a5\u5165\u7f51\u7edc\u7684\u7528\u6237\u3002<\/li>\n<p>\u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u5229\u7528BBR\u6765\u5728\u670d\u52a1\u5668\u4e0a\u505a\u52a0\u901f&#xff0c;\u6765\u63d0\u9ad8\u7528\u7f51\u7edc\u7684\u94fe\u63a5\u901f\u5ea6\u3002<\/p>\n<h3>3.2 \u64cd\u4f5c\u6b65\u9aa4<\/h3>\n<li>\u67e5\u770b\u7cfb\u7edf\u5f53\u524d\u62e5\u585e\u63a7\u5236\u7b97\u6cd5&#xff1a;<\/li>\n<p><span class=\"token function\">sysctl<\/span> net.ipv4.tcp_congestion_control<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-68028224143e0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8fd9\u91cc\u8868\u793a\u5355\u7b7e\u9ed8\u8ba4\u7b97\u6cd5\u7b56\u7565\u662fcubic<\/p>\n<li>\u914d\u7f6e\u5f00\u542f BBR \u7b97\u6cd5\u7b56\u7565&#xff1a;<\/li>\n<p><span class=\"token comment\"># \u4e34\u65f6\u751f\u6548<\/span><br \/>\n<span class=\"token function\">sysctl<\/span> <span class=\"token assign-left variable\">net.ipv4.tcp_congestion_control<\/span><span class=\"token operator\">&#061;<\/span>bbr<br \/>\n<span class=\"token function\">sysctl<\/span> <span class=\"token assign-left variable\">net.core.default_qdisc<\/span><span class=\"token operator\">&#061;<\/span>fq<\/p>\n<p><span class=\"token comment\"># \u5b89\u5168\u8ffd\u52a0\u914d\u7f6e\u6587\u4ef6\u6c38\u4e45\u751f\u6548<\/span><br \/>\n<span class=\"token function\">cat<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">EOF<span class=\"token bash punctuation\"> <span class=\"token operator\">&gt;&gt;<\/span> \/etc\/sysctl.conf<\/span><br \/>\nnet.ipv4.tcp_congestion_control&#061;bbr<br \/>\nnet.core.default_qdisc&#061;fq<br \/>\nEOF<\/span><\/p>\n<p><span class=\"token comment\"># \u5237\u65b0\u751f\u6548\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">sysctl<\/span> <span class=\"token parameter variable\">-p<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-6802822426b09.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u68c0\u67e5\u662f\u5426\u751f\u6548&#xff1a;<\/li>\n<p><span class=\"token function\">sysctl<\/span> net.ipv4.tcp_congestion_control<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-680282243c095.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> net.ipv4.tcp_congestion_control &#061; bbr # \u7b97\u6cd5\u7b56\u7565\u663e\u793a bbr \u8bf4\u660e\u751f\u6548\u3002<\/p>\n<h3>3.3 Linux\u7f51\u7edc\u4f18\u5316TCP\u7a97\u53e3\u8c03\u4f18<\/h3>\n<p><span class=\"token function\">wget<\/span> http:\/\/sh.nekoneko.cloud\/tools.sh <span class=\"token parameter variable\">-O<\/span> tools.sh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">bash<\/span> tools.sh<\/p>\n<h2>\u56db\u3001Fail2banSSH\u9632\u5fa1\u811a\u672c<\/h2>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5229\u7528iptables\u548c\u5f00\u6e90\u7a0b\u5e8ffail2ban\u6765\u8fdb\u884c\u670d\u52a1\u5668\u7b80\u5355\u9632\u7206\u7834\u7684\u811a\u672c\u3002\u9ed8\u8ba4\u81ea\u5e26SSH\u9632\u5fa1\u89c4\u5219\u3002<\/p>\n<p>\u5b89\u88c5<\/p>\n<p><span class=\"token function\">wget<\/span> https:\/\/raw.githubusercontent.com\/FunctionClub\/Fail2ban\/master\/fail2ban.sh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">bash<\/span> fail2ban.sh <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">tee<\/span> fail2ban.log<\/p>\n<li>\u7b2c\u4e00\u6b65\u9009\u62e9\u662f\u5426\u4fee\u6539SSH\u7aef\u53e3\u3002<\/li>\n<li>\u7b2c\u4e8c\u6b65\u8f93\u5165\u6700\u591a\u5c1d\u8bd5\u8f93\u5165SSH\u8fde\u63a5\u5bc6\u7801\u7684\u6b21\u6570<\/li>\n<li>\u7b2c\u4e09\u6b65\u8f93\u5165\u6bcf\u4e2a\u6076\u610fIP\u7684\u5c01\u7981\u65f6\u95f4&#xff08;\u5355\u4f4d&#xff1a;\u5c0f\u65f6&#xff09;<\/li>\n<p>\u5378\u8f7d<\/p>\n<p><span class=\"token function\">wget<\/span> https:\/\/raw.githubusercontent.com\/FunctionClub\/Fail2ban\/master\/uninstall.sh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">bash<\/span> uninstall.sh<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879 \u5b89\u88c5\u5b8c\u6210\u540e\u8bf7\u4f1a\u91cd\u542fSSH\u670d\u52a1&#xff0c;\u8bf7\u91cd\u65b0\u8fde\u63a5SSH\u4f1a\u8bdd \u82e5\u51fa\u73b0SSH\u65e0\u6cd5\u8fde\u63a5\u7684\u60c5\u51b5&#xff0c;\u8bf7\u68c0\u67e5\u662f\u5426\u4fee\u6539\u8fc7SSH\u7aef\u53e3&#xff0c;\u8bf7\u586b\u5199\u5199\u6539\u540e\u7684\u6b63\u786e\u7aef\u53e3\u8fdb\u884c\u8fde\u63a5<\/p>\n<hr \/>\n<h2>\u4e94\u3001\u6302\u8f7d\u6570\u636e\u76d8<\/h2>\n<p>\u6709\u4e9bvps\u4f1a\u662f\u7cfb\u7edf\u76d8&#043;\u6570\u636e\u76d8\u7684\u5f62\u5f0f&#xff0c;\u91cd\u88c5\u5b8c\u540e&#xff0c;\u6570\u636e\u76d8\u9700\u8981\u81ea\u5df1\u624b\u52a8\u6302\u8f7d\u4e0a\u53bb\u3002<\/p>\n<h3>5.1 \u67e5\u770b\u78c1\u76d8\u4fe1\u606f<\/h3>\n<p>\u5217\u51fa\u6240\u6709\u53ef\u7528\u5757\u8bbe\u5907\u7684\u4fe1\u606f&#xff0c;\u800c\u4e14\u8fd8\u80fd\u663e\u793a\u4ed6\u4eec\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb&#xff1a;<\/p>\n<p>lsblk<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-680282244f059.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.2 \u786c\u76d8\u5b9e\u4f53\u4f7f\u7528\u60c5\u51b5<\/h3>\n<p><span class=\"token function\">fdisk<\/span> <span class=\"token parameter variable\">-l<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-6802822463869.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.3 \u663e\u793a\u78c1\u76d8\u5206\u533a\u6302\u8f7d\u60c5\u51b5<\/h3>\n<p><span class=\"token comment\"># \u6309MB\u5c55\u793a<\/span><br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-k<\/span><br \/>\n<span class=\"token comment\"># \u6309GB\u5c55\u793a<\/span><br \/>\n<span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-680282247cbb5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6b64\u65f6\u53ef\u4ee5\u770b\u51fa&#xff0c;\u6211\u4eec\u7684\u6570\u636e\u76d8sda\u5e76\u6ca1\u6709\u6302\u8f7d<\/p>\n<h3>5.4 \u683c\u5f0f\u5316\u6570\u636e\u76d8 &#xff08;\u6ce8\u610f\u6570\u636e\u5b89\u5168&#xff09;<\/h3>\n<p>mkfs.ext4 <span class=\"token operator\">&lt;<\/span>\u78c1\u76d8\u8def\u5f84<span class=\"token operator\">&gt;<\/span><\/p>\n<p>\u4ece\u4e0a\u4e00\u6b65\u7684\u78c1\u76d8\u4fe1\u606f\u53ef\u4ee5\u77e5\u9053&#xff0c;\u6570\u636e\u76d8\u8def\u5f84\u4e3a&#xff1a;\/dev\/sda&#xff0c;\u6240\u4ee5\u6211\u4eec\u4f7f\u7528mkfs.ext4 \/dev\/sda \u6765\u683c\u5f0f\u5316\u5206\u533a <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-68028224918fe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.5 \u6302\u8f7d\u78c1\u76d8\u5230\u76ee\u5f55<\/h3>\n<p><span class=\"token comment\">#\u5728\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u6587\u4ef6\u5939<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> \/data<br \/>\n<span class=\"token comment\">#\u6302\u8f7d\u5230\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">mount<\/span> \/dev\/sda \/data<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-68028224a8b55.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.6 \u67e5\u770b\u6302\u8f7d\u662f\u5426\u6210\u529f<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-68028224bb082.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.7 \u914d\u7f6e\u91cd\u542f\u81ea\u52a8\u6302\u8f7d<\/h3>\n<p>\u4e91\u670d\u52a1\u5668\u7cfb\u7edf\u6302\u8f7d\u78c1\u76d8\u65f6\u4e0d\u63a8\u8350\u4f7f\u7528mount\u7684\u65b9\u6cd5\u6765\u6302\u8f7d\u78c1\u76d8&#xff0c;\u56e0\u4e3a\u4e91\u4e2d\u8bbe\u5907\u7684\u987a\u5e8f\u7f16\u7801\u5728\u5173\u95ed\u6216\u8005\u5f00\u542f\u4e91\u670d\u52a1\u5668\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u53d1\u751f\u6539\u53d8&#xff0c;\u6240\u4ee5\u63a8\u8350\u4f7f\u7528UUID\u6765\u914d\u7f6e\u81ea\u52a8\u6302\u8f7d\u6570\u636e\u76d8\u3002 5.7.1 \u67e5\u8be2\u78c1\u76d8\u5206\u533a\u7684UUID \u5148\u67e5\u770b\u78c1\u76d8\u5206\u533a\u53f7<\/p>\n<p>blkid \/dev\/sda<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-68028224cfa35.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> 5.7.2 \u7ed1\u5b9a\u5206\u533a\u4e0e\u76ee\u5f55 \u9700\u8981\u5728\/etc\/fstab\u6dfb\u52a0\u5206\u533a\u4fe1\u606f\u4e0e\u76ee\u5f55\u4e4b\u95f4\u7684\u7ed1\u5b9a\u4fe1\u606f<\/p>\n<p><span class=\"token function\">cat<\/span> <span class=\"token operator\">&lt;&lt;<\/span> <span class=\"token string\">EOF<span class=\"token bash punctuation\"> <span class=\"token operator\">&gt;&gt;<\/span> \/etc\/fstab<\/span><br \/>\nUUID&#061;xxxxxxxxxxxxxxxxxxxx \/data ext4 defaults 0 1<br \/>\nEOF<\/span><\/p>\n<hr \/>\n<h2>\u516d\u3001\u83b7\u53d6Linux\u6027\u80fd\u548c\u786c\u4ef6\u4fe1\u606f<\/h2>\n<p>\u5bf9\u4e8e\u521a\u91cd\u88c5\u5b8c\u6210\u7684\u7cfb\u7edf&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u811a\u672c<\/p>\n<h3>6.1 \u878d\u5408\u602a\u6d4b\u8bc4\u811a\u672c<\/h3>\n<p>\u4f7f\u7528\u878d\u5408\u602a\u6d4b\u8bc4\u811a\u672c https:\/\/github.com\/spiritLHLS\/ecs?tab&#061;readme-ov-file \u53ef\u4ee5\u5bf9\u670d\u52a1\u5668\u7684\u57fa\u7840\u4fe1\u606f\u6709\u6240\u4e86\u89e3 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164732-68028224e310f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4f7f\u7528\u547d\u4ee4\u4e3a&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-L<\/span> https:\/\/gitlab.com\/spiritysdx\/za\/-\/raw\/main\/ecs.sh <span class=\"token parameter variable\">-o<\/span> ecs.sh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">chmod<\/span> &#043;x ecs.sh <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">bash<\/span> ecs.sh<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164733-680282251dbb2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6267\u884c\u5b8c\u540e&#xff0c;\u4f1a\u5217\u51fa\u5f53\u524d\u670d\u52a1\u5668\u7684\u57fa\u7840\u786c\u4ef6\u4fe1\u606f\u548c\u6027\u80fd\u4fe1\u606f <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164733-6802822546740.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>6.2 YABS<\/h3>\n<p>\u9664\u6b64\u4e4b\u5916&#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528\u56fd\u5916\u6bd4\u8f83\u5e38\u7528\u7684yabs\u811a\u672c\u6765\u6d4b\u8bc4https:\/\/github.com\/masonr\/yet-another-bench-script &#xff0c;\u6267\u884c\u547d\u4ee4\u4e3a&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-sL<\/span> https:\/\/yabs.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">bash<\/span><\/p>\n<p>\u6216<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-sL<\/span> https:\/\/yabs.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">bash<\/span><\/p>\n<p>\u6267\u884c\u7ed3\u679c\u5982\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164733-6802822569eb2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7531\u4e8e\u8fd9\u4e2a\u662f\u56fd\u5916\u7684\u811a\u672c&#xff0c;\u7f51\u7edc\u6d4b\u8bd5\u90fd\u662f\u56fd\u5916\u7684\u7f51\u7ad9&#xff0c;\u6211\u4eec\u53ef\u4ee5\u4e0d\u6d4b\u8bd5\u7f51\u7edc\u6027\u80fd&#xff0c;\u8fd0\u884c Geekbench 5 \u6d4b\u8bd5\u5e76\u7981\u7528 Geekbench 6 \u6d4b\u8bd5\u548ciperf &#xff08;\u7f51\u7edc\u6027\u80fd&#xff09; \u6d4b\u8bd5<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-sL<\/span> https:\/\/yabs.sh <span class=\"token operator\">|<\/span> <span class=\"token function\">bash<\/span> <span class=\"token parameter variable\">-s<\/span> &#8212; <span class=\"token parameter variable\">-i<\/span> <span class=\"token parameter variable\">-5<\/span><\/p>\n<hr \/>\n<h2>\u4e03\u3001\u5b89\u88c5docker<\/h2>\n<h3>7.1 \u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c\u81ea\u52a8\u5b89\u88c5<\/h3>\n<p>\u5b89\u88c5\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p> <span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-fsSL<\/span> https:\/\/get.docker.com <span class=\"token parameter variable\">-o<\/span> get-docker.sh<br \/>\n <span class=\"token function\">sudo<\/span> <span class=\"token function\">sh<\/span> get-docker.sh<\/p>\n<h3>7.2 \u624b\u52a8\u5b89\u88c5<\/h3>\n<li>\u66f4\u65b0\u8f6f\u4ef6\u5305 \u9996\u5148&#xff0c;\u66f4\u65b0\u73b0\u6709\u7684\u8f6f\u4ef6\u5305\u548c\u5305\u7f13\u5b58&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> upgrade<\/p>\n<li>\u5b89\u88c5\u4f9d\u8d56\u5305 \u5b89\u88c5\u4e00\u4e9b\u9700\u8981\u7684\u4f9d\u8d56\u5305&#xff0c;\u8fd9\u4e9b\u5305\u5141\u8bb8 apt \u4f7f\u7528 HTTPS \u534f\u8bae\u6765\u8bbf\u95ee Docker \u4ed3\u5e93&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> apt-transport-https ca-certificates <span class=\"token function\">curl<\/span> software-properties-common<\/p>\n<li>\u6dfb\u52a0 Docker \u5b98\u65b9 GPG \u5bc6\u94a5 \u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u6dfb\u52a0 Docker \u5b98\u65b9\u7684 GPG \u5bc6\u94a5&#xff1a;<\/li>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-fsSL<\/span> https:\/\/download.docker.com\/linux\/ubuntu\/gpg <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> gpg <span class=\"token parameter variable\">&#8211;dearmor<\/span> <span class=\"token parameter variable\">-o<\/span> \/usr\/share\/keyrings\/docker-archive-keyring.gpg<\/p>\n<li>\u6dfb\u52a0 Docker \u4ed3\u5e93 \u6dfb\u52a0 Docker \u5b98\u65b9\u7684 APT \u8f6f\u4ef6\u6e90&#xff1a;<\/li>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;deb [arch&#061;<span class=\"token variable\"><span class=\"token variable\">$(<\/span>dpkg &#8211;print-architecture<span class=\"token variable\">)<\/span><\/span> signed-by&#061;\/usr\/share\/keyrings\/docker-archive-keyring.gpg] https:\/\/download.docker.com\/linux\/ubuntu <span class=\"token variable\"><span class=\"token variable\">$(<\/span>lsb_release <span class=\"token parameter variable\">-cs<\/span><span class=\"token variable\">)<\/span><\/span> stable&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">tee<\/span> \/etc\/apt\/sources.list.d\/docker.list <span class=\"token operator\">&gt;<\/span> \/dev\/null<\/p>\n<li>\u66f4\u65b0 APT \u8f6f\u4ef6\u5305\u7f13\u5b58 \u6dfb\u52a0\u4ed3\u5e93\u540e&#xff0c;\u66f4\u65b0 APT \u5305\u7d22\u5f15&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/p>\n<p>\u786e\u4fdd\u4f60\u73b0\u5728\u4ece Docker \u5b98\u65b9\u4ed3\u5e93\u5b89\u88c5 Docker \u800c\u4e0d\u662f Debian \u9ed8\u8ba4\u4ed3\u5e93&#xff1a;<\/p>\n<p><span class=\"token function\">apt-cache<\/span> policy docker-ce<\/p>\n<p>\u4f60\u5e94\u8be5\u770b\u5230\u5b83\u6307\u5411 https:\/\/download.docker.com\/&#xff0c;\u786e\u4fdd\u8fd9\u5c31\u662f\u5b98\u65b9\u7684 Docker \u4ed3\u5e93\u3002<\/p>\n<li>\u5b89\u88c5 Docker \u73b0\u5728&#xff0c;\u4f60\u53ef\u4ee5\u5b89\u88c5 Docker&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/p>\n<li>\u542f\u52a8\u5e76\u9a8c\u8bc1 Docker \u542f\u52a8 Docker \u5e76\u8bbe\u7f6e\u4e3a\u5f00\u673a\u81ea\u542f&#xff1a;<\/li>\n<p><span class=\"token function\">sudo<\/span> systemctl start <span class=\"token function\">docker<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> <span class=\"token function\">docker<\/span><\/p>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1 Docker \u662f\u5426\u5b89\u88c5\u6210\u529f&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">docker<\/span> <span class=\"token parameter variable\">&#8211;version<\/span><\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u6d4b\u8bd5\u547d\u4ee4\u786e\u4fdd Docker \u6b63\u5e38\u5de5\u4f5c&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">docker<\/span> run hello-world<\/p>\n<h3>7.3 \u5378\u8f7d docker<\/h3>\n<p>\u5220\u9664\u5b89\u88c5\u5305&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> purge docker-ce<\/p>\n<p>\u5220\u9664\u955c\u50cf\u3001\u5bb9\u5668\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\u5185\u5bb9&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> <span class=\"token parameter variable\">-rf<\/span> \/var\/lib\/docker<\/p>\n<hr \/>\n<h3>\u516b\u3001\u5b89\u88c5\u4e2d\u6587\u7248portainer<\/h3>\n<p>\u8fd9\u91cc\u4f7f\u7528\u7684\u662fhttps:\/\/hub.docker.com\/r\/6053537\/portainer-ce \u6e90\u7801\u4ed3\u5e93https:\/\/github.com\/eysp\/portainer-ce\u2060<\/p>\n<h3>8.1 \u4e00\u952e\u5b89\u88c5\u4ee3\u7801<\/h3>\n<p><span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-d<\/span> <span class=\"token parameter variable\">&#8211;restart<\/span><span class=\"token operator\">&#061;<\/span>always <span class=\"token parameter variable\">&#8211;name<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;portainer&#034;<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">9000<\/span>:9000 <span class=\"token parameter variable\">-v<\/span> \/var\/run\/docker.sock:\/var\/run\/docker.sock <span class=\"token number\">6053537<\/span>\/portainer-ce<\/p>\n<p>\u5982\u679c\u4e0d\u60f3\u7528\u9ed8\u8ba4\u7684\u7aef\u53e3&#xff0c;\u53ef\u4ee5\u628a\u5176\u4e2d\u7684 -p 9000:9000 \u53ef\u4ee5\u6539\u4e3a-p &lt;\u81ea\u5b9a\u4e49\u7aef\u53e3&gt;:9000<\/p>\n<h3>8.2 163\u955c\u50cf\u5b89\u88c5<\/h3>\n<p>portainer-ce\u4e2d\u6587&#xff0c;\u8bbf\u95eedockerhub\u7f51\u901f\u4e0d\u597d\u7684\u5c1d\u8bd5<\/p>\n<p><span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-d<\/span> <span class=\"token parameter variable\">&#8211;restart<\/span><span class=\"token operator\">&#061;<\/span>always <span class=\"token parameter variable\">&#8211;name<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;portainer&#034;<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">9000<\/span>:9000 <span class=\"token parameter variable\">-v<\/span> \/var\/run\/docker.sock:\/var\/run\/docker.sock hub-mirror.c.163.com\/6053537\/portainer-ce<\/p>\n<h3>8.3 Docker Desktop on Windows \u5b89\u88c5\u4e2d\u6587 Portainer<\/h3>\n<p><span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-d<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">9000<\/span>:9000 <span class=\"token parameter variable\">&#8211;name<\/span> portainer <span class=\"token parameter variable\">&#8211;restart<\/span> always <span class=\"token parameter variable\">-v<\/span> <span class=\"token punctuation\">\\\\<\/span><span class=\"token punctuation\">\\\\<\/span>.<span class=\"token punctuation\">\\\\<\/span>pipe<span class=\"token punctuation\">\\\\<\/span>docker_engine:<span class=\"token punctuation\">\\\\<\/span><span class=\"token punctuation\">\\\\<\/span>.<span class=\"token punctuation\">\\\\<\/span>pipe<span class=\"token punctuation\">\\\\<\/span>docker_engine <span class=\"token parameter variable\">-v<\/span> portainer_data:C:<span class=\"token punctuation\">\\\\<\/span>data <span class=\"token number\">6053537<\/span>\/portainer-ce<\/p>\n<p>\u5982\u679c\u4f60\u8981\u542f\u7528ssl\u8bbf\u95ee&#xff0c;\u8fdc\u7a0b\u4e3b\u673a\u5efa\u8bae\u542f\u7528&#xff0c;\u7aef\u53e3443\u548c\u8bc1\u4e66\u8def\u5f84\/certs\u8bf7\u81ea\u884c\u66f4\u6539<\/p>\n<p><span class=\"token function\">docker<\/span> run <span class=\"token parameter variable\">-d<\/span> <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">8000<\/span>:8000 <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">443<\/span>:9443 <span class=\"token parameter variable\">&#8211;name<\/span> portainer <span class=\"token parameter variable\">&#8211;restart<\/span> always <span class=\"token parameter variable\">-v<\/span><br \/>\n      ~\/local-certs:\/certs <span class=\"token parameter variable\">-v<\/span> portainer_data:\/data <span class=\"token number\">6053537<\/span>\/portainer-ce <span class=\"token parameter variable\">-v<\/span> \/var\/run\/docker.sock:\/var\/run\/docker.sock <span class=\"token parameter variable\">&#8211;ssl<\/span><br \/>\n      <span class=\"token parameter variable\">&#8211;sslcert<\/span> \/certs\/portainer.crt <span class=\"token parameter variable\">&#8211;sslkey<\/span> \/certs\/portainer.key<\/p>\n<p>\u6216\u8005\u4f60\u4e5f\u53ef\u4ee5\u542f\u7528Nginx\u53cd\u4ee3&#xff0c;\u4e0b\u9762\u662f\u4ee3\u7801<\/p>\n<p>  location \/ <span class=\"token punctuation\">{<\/span><br \/>\n    proxy_pass http:\/\/127.0.0.1:9000<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Host <span class=\"token variable\">$host<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Real-IP <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Forwarded-For <span class=\"token variable\">$proxy_add_x_forwarded_for<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_read_timeout 300s<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_http_version <span class=\"token number\">1.1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Upgrade <span class=\"token variable\">$http_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Connection <span class=\"token string\">&#034;upgrade&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5982\u679c\u4f60\u53ea\u60f3\u8981\u8bbf\u95eeyouname.com\/portainer\u8fd9\u6837\u7684\u5b50\u76ee\u5f55\u4e5f\u53ef\u4ee5<\/p>\n<p>location ^~ \/portainer\/ <span class=\"token punctuation\">{<\/span><br \/>\n  proxy_pass http:\/\/127.0.0.1:9000\/<span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header Host <span class=\"token variable\">$host<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header X-Real-IP <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header X-Forwarded-For <span class=\"token variable\">$proxy_add_x_forwarded_for<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_read_timeout 300s<span class=\"token punctuation\">;<\/span><br \/>\n  proxy_http_version <span class=\"token number\">1.1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header Upgrade <span class=\"token variable\">$http_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  proxy_set_header Connection <span class=\"token string\">&#034;upgrade&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164733-680282258d3a9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.4w\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf24\u6b21\u3002\u4ee5\u4e0b\u4e3a\u6211\u81ea\u5df1\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u53c2\u8003\u7f51\u4e0a\u8d44\u6599\u8fdb\u884c\u7684\u6b65\u9aa4\uff0c\u5728\u6b64\u505a\u4e2a\u5907\u4efd\u8bb0\u5f55\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u6709\u540c\u6837\u9700\u6c42\u7684\u4f19\u4f34_debian 12 bbr<\/p>\n","protected":false},"author":2,"featured_media":18345,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,58,43],"topic":[],"class_list":["post-18362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-linux","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/18362.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.4w\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf24\u6b21\u3002\u4ee5\u4e0b\u4e3a\u6211\u81ea\u5df1\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u53c2\u8003\u7f51\u4e0a\u8d44\u6599\u8fdb\u884c\u7684\u6b65\u9aa4\uff0c\u5728\u6b64\u505a\u4e2a\u5907\u4efd\u8bb0\u5f55\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u6709\u540c\u6837\u9700\u6c42\u7684\u4f19\u4f34_debian 12 bbr\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/18362.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T16:47:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164731-68028223ce7c6.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/18362.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/18362.html\",\"name\":\"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T16:47:34+00:00\",\"dateModified\":\"2025-04-18T16:47:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/18362.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/18362.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/18362.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/18362.html","og_locale":"zh_CN","og_type":"article","og_title":"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.4w\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf24\u6b21\u3002\u4ee5\u4e0b\u4e3a\u6211\u81ea\u5df1\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u53c2\u8003\u7f51\u4e0a\u8d44\u6599\u8fdb\u884c\u7684\u6b65\u9aa4\uff0c\u5728\u6b64\u505a\u4e2a\u5907\u4efd\u8bb0\u5f55\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u6709\u540c\u6837\u9700\u6c42\u7684\u4f19\u4f34_debian 12 bbr","og_url":"https:\/\/www.wsisp.com\/helps\/18362.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T16:47:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418164731-68028223ce7c6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/18362.html","url":"https:\/\/www.wsisp.com\/helps\/18362.html","name":"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T16:47:34+00:00","dateModified":"2025-04-18T16:47:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/18362.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/18362.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/18362.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"VPS\u670d\u52a1\u5668\u91cd\u88c5Linux\u7cfb\u7edf&amp;\u4f18\u5316\u5e76\u5b89\u88c5\u4e2d\u6587\u7248portainer\u7ba1\u7406docker"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/18362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=18362"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/18362\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/18345"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=18362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=18362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=18362"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=18362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}