{"id":321,"date":"2020-02-28T08:52:00","date_gmt":"2020-02-28T00:52:00","guid":{"rendered":"http:\/\/gh.airy.cn\/wordpress\/?p=321"},"modified":"2026-04-15T17:54:09","modified_gmt":"2026-04-15T09:54:09","slug":"rootgh-history","status":"publish","type":"post","link":"https:\/\/airy.cn\/WordPress\/?p=321","title":{"rendered":"VPS-Install-Scripts &#8211; 2026\/04\/15"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u89e3\u51b3CentOS 7 YUM\u66f4\u65b0\u95ee\u9898\uff1a\u4f7f\u7528Vault\u955c\u50cf\u6e90\u66ff\u4ee3Mirrorlist\n\n\n1.\u00a0\u8fd0\u884c\u4e0a\u8ff0\u547d\u4ee4\uff1a\n\nsudo sed -i 's\/mirrorlist\/#mirrorlist\/g' \/etc\/yum.repos.d\/CentOS-*\nsudo sed -i 's|#baseurl=http:\/\/mirror.centos.org|baseurl=http:\/\/vault.centos.org|g' \/etc\/yum.repos.d\/CentOS-*\u00a0\n\nhttps:&#47;&#47;cloud.google.com\/compute\/docs\/eol\/centos-eol-guidance?hl=zh-cn \n\nsed -i -e s\/mirror.centos.org\/vault.centos.org\/g -e s\/^#baseurl=\/baseurl=\/g -e s\/^mirrorlist=\/#mirrorlist=\/g \/etc\/yum.repos.d\/CentOS-*.repo\n\n2.\u00a0\u6e05\u7406YUM\u7f13\u5b58\u5e76\u751f\u6210\u65b0\u7f13\u5b58\uff1a\n\nrm -rf \/var\/cache\/yum\n\nsudo rm -f \/etc\/yum.repos.d\/google-cloud*.repo\nsudo yum clean all --enablerepo='*'\nsudo yum clean all\nsudo yum repolist\nsudo yum makecache\u00a0\n\n3.\u00a0\u66f4\u65b0\u7cfb\u7edf\uff1a\n\nsudo yum update\n\n4. \u5b89\u88c5 epel-release\nsudo yum -y install epel-release\n\n5. \u5b89\u88c5\u9700\u8981\u7684\u529f\u80fd\u548c\u8f6f\u4ef6\n\nsudo yum -y install wget tree curl tcsh csh net-tools traceroute ca-certificates nmon iperf3 go  squid httpd  htpasswd httpd-tools \n---------------------------------------------------------------------------------------------\n\nyum install glibc.i686 libgcc-4.8.5-11.el7.i686 libgcc_s.so.1\nyum install glibc.* libgcc.* \n\n---------------------------------------------------------------------------------------------\nbash -c \"$(curl -sS http:\/\/dl.appnode.com\/install.sh)\"\n---------------------------------------------------------------------------------------------\nBBR\u4e00\u952e\u811a\u672c\uff08\u4ec5CentOS\uff09\uff1a\n\u547d\u4ee4\u884c\u6267\u884c\uff1a\nwget \"https:\/\/github.com\/cx9208\/bbrplus\/raw\/master\/ok_bbrplus_centos.sh\" &amp;&amp; chmod +x ok_bbrplus_centos.sh &amp;&amp; .\/ok_bbrplus_centos.sh\n\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u8981\u51e0\u5206\u949f \u4ee5\u4e0a\u8fc7\u7a0b\u8981\u6c42\u91cd\u542f\u7cfb\u7edf\uff0c\u8f93\u5165\u201cY\u201d\u56de\u8f66\u5373\u53ef\u4e86\u3002\n\u5b89\u88c5\u540e\uff0c\u6267\u884cuname -r\uff0c\u663e\u793a4.14.129-bbrplus\u5219\u5207\u6362\u5185\u6838\u6210\u529f\n\u6267\u884clsmod | grep bbr\uff0c\u663e\u793a\u6709bbrplus\u5219\u5f00\u542f\u6210\u529f\n\nBBR-Plus\uff1a\n#\u6267\u884cBBR PLUS\u4fee\u6b63\u7248\u4e00\u952e\u811a\u672c\nwget -N --no-check-certificate \"https:\/\/raw.githubusercontent.com\/chiakge\/Linux-NetSpeed\/master\/tcp.sh\" &amp;&amp; chmod +x tcp.sh &amp;&amp;  .\/tcp.sh\n#\u5907\u7528\u811a\u672c\nwget -N --no-check-certificate \"https:\/\/raw.githubusercontent.com\/sembrono\/BBR-PLUS\/master\/tcp.sh\"\n\n\n\u7279\u522b\u6ce8\u610f\u4ee5\u4e0b\u9519\u8bef\uff01\uff01\uff01\uff01  \n&#91;\u9519\u8bef] \/boot\/grub2\/grub.cfg \u627e\u4e0d\u5230\uff0c\u8bf7\u68c0\u67e5\n\n\u5982\u679c\u51fa\u73b0\u4fee\u590d\u5f15\u5bfc\nyum install -y grub2\ngrub2-mkconfig -o \/boot\/grub2\/grub.cfg\n ---------------------------------------------------------------------------------------------\n#\/boot\/grub\/grub.conf \u7f3a\u5931\uff1a\nyum install -y grub\ngrub-mkconfig -o \/boot\/grub\/grub.conf\n---------------------------------------------------------------------------------------------\n\u652f\u6301\u591a\u534f\u8bae\u591a\u7528\u6237 xray \u9762\u677f\n\u65e7\u7248\u672c\uff1a bash &lt;(curl -Ls https:\/\/raw.githubusercontent.com\/vaxilu\/x-ui\/master\/install.sh)\n\n\n\u56e0\u4e3a\u539f\u7248\u7684 X-UI \u5df2\u7ecf\u5f88\u4e45\u6ca1\u6709\u66f4\u65b0\u548c\u7ef4\u62a4\u4e86\uff0c\u4ee5\u4e0b\u7684 X-UI \u4e3a\u6539\u7248\uff0c\u6765\u81ea GitHub \uff1a\u70b9\u51fb\u8bbf\u95ee\nbash &lt;(wget -qO- https:\/\/raw.githubusercontent.com\/sing-web\/x-ui\/main\/install_CN.sh)\n\n \nZerotier:\ncurl -s https:\/\/install.zerotier.com | sudo bash\nzerotier-cli join 3efa5cb78a9b603e\n\n---------------------------------------------------------------------------------------------\nSmartping\uff1a\nwget https:\/\/github.com\/smartping\/smartping\/releases\/download\/v0.8.0\/smartping-v0.8.0.tar.gz\n1 cd ~ &amp;&amp; mkdir smartping &amp;&amp; tar xzvf smartping-v0.8.0.tar.gz -C smartping\n2 cd smartping\n.\/control start\necho \"\/root\/smartping\/control start\" >> \/etc\/rc.local\n\/root\/smartping\/control start\n\/root\/smartping\/control restart\n\/root\/smartping\/control status\ncat  \/etc\/rc.local\necho \"\/root\/smartping\/control start\" >> \/etc\/rc.local\ncat  \/etc\/rc.local\nvi \/etc\/rc.local\n---------------------------------------------------------------------------------------------\n \nSquid\uff1a\nyum install -y squid httpd  htpasswd httpd-tools    \nhtpasswd  -c \/etc\/squid\/passwd xcm1982\nsystemctl restart squid.service\nsystemctl enable squid.service\n ---------------------------------------------------------------------------------------------\nyum install iperf3\niperf3 -s\n\n\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u60a8\u7684 Linux \u7cfb\u7edf\u4fe1\u606f\uff0c\u8fd8\u53ef\u4ee5\u6d4b\u8bd5\u7f51\u7edc\u5e26\u5bbd\u53ca\u786c\u76d8\u8bfb\u5199\u901f\u7387\n\nwget -qO- https:\/\/bench.sh\/bench.sh | bash\n\n \nwget -qO- --no-check-certificate https:\/\/raw.githubusercontent.com\/oooldking\/script\/master\/superbench.sh | bash\nwget -N --no-check-certificate https:\/\/raw.githubusercontent.com\/FunctionClub\/ZBench\/master\/ZBench-CN.sh &amp;&amp; bash ZBench-CN.sh\n---------------------------------------------------------------------------------------------\n https:\/\/airy.cn\/SwitchOmega\/OmegaOptions.bak\n\n\n\nyum install fail2ban\nsystemctl enable fail2ban\n### cp \/etc\/fail2ban\/fail2ban.conf \/etc\/fail2ban\/fail2ban.local\nwget -O \/etc\/fail2ban\/jail.local https:\/\/airy.ltd\/\/fail2ban\/jail.local\nsystemctl restart fail2ban\nsystemctl status fail2ban\nfail2ban-client status sshd\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-321","post","type-post","status-publish","format-standard","hentry","category-airy-tech"],"_links":{"self":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=321"}],"version-history":[{"count":33,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":2869,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions\/2869"}],"wp:attachment":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}