{"id":134179,"date":"2020-07-21T05:05:08","date_gmt":"2020-07-20T21:05:08","guid":{"rendered":"http:\/\/4563.org\/?p=134179"},"modified":"2020-07-21T05:05:08","modified_gmt":"2020-07-20T21:05:08","slug":"vps%e5%88%b0%e6%89%8b%e5%90%8e%e7%9a%84%e9%a6%96%e8%a6%81%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=134179","title":{"rendered":"vps\u5230\u624b\u540e\u7684\u9996\u8981\u64cd\u4f5c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Biomed<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>vps\u5230\u624b\u540e\u7684\u9996\u8981\u64cd\u4f5c<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Biomed \u4e8e 2020-7-20 15:53 \u7f16\u8f91 <\/p>\n<p> \u548c\u5404\u4f4dmjj\u5206\u4eab\u4ea4\u6d41\u4e00\u4e0b\uff0c\u5c0f\u9e21\u5230\u624b\u540e\u7684\u9996\u8981\u64cd\u4f5c\uff0c\u6211\u559c\u6b22\u7528Debian\u7cfb\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4ee5\u4e0b\u4ee5Debian\u4e3a\u4f8b\u3002<\/p>\n<p>  0. \u5347\u7ea7\u7cfb\u7edf\u6216\u66f4\u6362\u7cfb\u7edf<br \/>  \u4e0d\u652f\u6301Debian\u7684\u5c31\u81ea\u884cdd\u4e00\u4e2a<br \/>  wget &#8211;no-check-certificate -O AutoReinstall.sh https:\/\/git.io\/AutoReinstall.sh &amp;&amp; bash AutoReinstall.sh<br \/>  # \u9ed8\u8ba4\u5bc6\u7801Pwd@Linux<br \/>  apt update<br \/>  apt full-upgrade -y<br \/>  (\u4ee5\u4e0b\u53ef\u9009\uff0cDebian9\u5347\u7ea7\u81f3Debian10)<br \/>  sed -i &#8216;s\/stretch\/buster\/g&#8217; \/etc\/apt\/sources.list <br \/>  apt update<br \/>  apt full-upgrade -y<\/p>\n<p>  \u7528\u6700\u65b0\u7248\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6709\u8bf8\u591a\u597d\u5904\uff0c\u6bd4\u5982\u6027\u80fd\u4e0a\u7684\u63d0\u5347\uff0c\u66f4\u4fbf\u6377\u7684\u64cd\u4f5c\uff0c\u66f4\u591a\u8f6f\u4ef6\u652f\u6301\uff0c\u66f4\u591a\u65b0\u7279\u6027\u7b49\u7b49\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5927\u5bb6\u90fd\u77e5\u9053\u67d0\u4e9b\u57fa\u4e8etls\u52a0\u5bc6\u7684web\u670d\u52a1\u5668\u6216\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u6bd4\u5982nginx\uff0c\u7528tls1.3\u901f\u5ea6\u548c\u5b89\u5168\u6027\u4f1a\u6709\u8f83\u5927\u63d0\u5347\uff0c\u800cDebian10\u7528apt\u9ed8\u8ba4\u5b89\u88c5nginx\u5c31\u652f\u6301tls1.3\uff0cDebian9\u7684\u5219\u4e0d\u7136\u3002<\/p>\n<p>  1. \u5b89\u88c5\u57fa\u672c\u8f6f\u4ef6<br \/>  apt install wget curl htop vim zsh unzip man ufw fail2ban certbot nginx speedtest-cli python3 python3-pip openssl cron socat curl git aria2 -y<br \/>  pip3 install requests bs4 lxml python-telegram-bot you-get \u6709\u56fe\u6bd4-dl<\/p>\n<p>  2.\u4f18\u5316tcp\u4f20\u8f93\uff08\u5373\u5f00\u542fbbr\uff09<br \/>  echo &quot;net.core.default_qdisc=fq&quot; &gt;&gt; \/etc\/sysctl.conf<br \/>  echo &quot;net.ipv4.tcp_congestion_control=bbr&quot; &gt;&gt; \/etc\/sysctl.conf<br \/>  sysctl -p<br \/>  sysctl net.ipv4.tcp_available_congestion_control<br \/>  lsmod | grep bbr<\/p>\n<p>  3.\u7f8e\u5316\u7ec8\u7aef<br \/>  sh -c &quot;$(wget https:\/\/raw.githubusercontent.com\/ohmyzsh\/ohmyzsh\/master\/tools\/install.sh)&quot;<br \/>  git clone https:\/\/github.com\/zsh-users\/zsh-autosuggestions ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-autosuggestions<br \/>  git clone https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-syntax-highlighting<\/p>\n<p>  zsh-autosuggestions zsh-syntax-highlighting<\/p>\n<p>  4.\u5b89\u5168\u52a0\u56fa<br \/>  \u5df2\u7ecf\u6709\u4eba\u53d1\u8fc7\u5e16\u5b50\uff0c\u6211\u5c31\u4e0d\u8d58\u8ff0\u4e86\uff0c\u5927\u6982\u5c31\u51e0\u6b65\uff0c\u66f4\u6362ssh\u7aef\u53e3\uff0c\u5f00\u542f\u9632\u706b\u5899\uff0c\u5b89\u88c5fail2ban<br \/>  https:\/\/www.hostloc.com\/thread-711548-1-1.html<\/p>\n<p>  5. \u6027\u80fd\u6d4b\u8bd5<br \/>  wget -qO- git.io\/superbench.sh | bash<br \/>  \u4ee5\u53ca\u8def\u7531\u53bb\u7a0b\u56de\u7a0b\u6d4b\u8bd5\uff0c\u7528besttrace\u6d4b\u7684\u3002<\/p>\n<p>  6.\u5220\u673a\u8dd1\u8def\uff08\u53ef\u9009\uff09<br \/>  rm -rf \/*<br \/>  \u786e\u4fdd\u662froot\u767b\u5f55\uff0c\u4e0d\u662f\u7684\u8bdd\uff0c\u547d\u4ee4\u884c\u524d\u52a0\u4e0asudo<\/p>\n<p>  \u81f3\u6b64\uff0c\u4e00\u53f0\u7a33\u5b9a\u597d\u7528\u7684\u5c0f\u9e21\u914d\u7f6e\u5b8c\u6bd5:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7eff\u8c46<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u5148DD Debian\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>CO2<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5230\u624b\u5c31\u6d4b\u4e00\u4e0b\u901f\uff0c\u7136\u540e\u5403\u7070\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>baidns<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t6.\u5220\u673a\u8dd1\u8def\uff08\u53ef\u9009\uff09\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Erik<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5176\u4ed6\u4ee3\u7801\u592a\u590d\u6742\uff0c\u53ea\u8bb0\u4f4f\u4e86rm -rf \/*<\/p>\n<p>  \u4e0d\u9519yc017t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cmm<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>merloat<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u771f\u80fd\u6c34\uff0c\u6700\u9996\u8981\u7684\u5b89\u5168\u52a0\u56fa\u4e0d\u8bf4:lolhttps:\/\/cdn.jsdelivr.net\/gh\/hishis\/forum-master\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>qinghe187100<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u662f\u5e94\u8be5\u662f\u8dd1\u5f00\u5fc3\u811a\u672c-\u5220\u673a-\u9000\u6b3e\u5417\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>b66667777<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t6.\u64cd\u4f5c \u597d\u8bc4:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>remarkable<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6700\u540e\u90a3\u4e2a\u547d\u4ee4\u4e0d\u9519,\u524d\u9762\u90fd\u5f04\u8fc7\u540e\u5220\u9664\u4e00\u4e0b\u5783\u573e\u6587\u4ef6:lol:lol:lol\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Biomed \u5927\u4f6c\u6709\u8bdd\u8bf4 : vp&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134179"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134179"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/134179\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134179"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}