{"id":5399,"date":"2021-01-04T11:30:43","date_gmt":"2021-01-04T11:30:43","guid":{"rendered":"https:\/\/blog.gwlin.com\/?p=5399"},"modified":"2023-03-29T20:10:17","modified_gmt":"2023-03-29T20:10:17","slug":"\u5347\u7ea7centos\u81f34.9\/4.10\uff0c\u5f00\u542fbbr\u52a0\u901f","status":"publish","type":"post","link":"https:\/\/www.gwlin.com\/blog\/posts\/5399","title":{"rendered":"\u5347\u7ea7centos\u81f34.9\/4.10\uff0c\u5f00\u542fbbr\u52a0\u901f"},"content":{"rendered":"<p>\u7b2c\u4e00\u6b21\u542c\u5230BBR\u7b97\u6cd5\u662f\u5728\u77e5\u4e4e\u4e0a\uff0c\u540e\u6765\u4e86\u89e3\u5230\u8fd9\u4e1c\u897f\u5bf9shadowsocks\u4e5f\u6709\u4f5c\u7528\uff0c\u5c31\u8bd5\u7740\u628a\u81ea\u5df1VPS\u7684centos\u5347\u7ea7\u52304.9\u3002 \u5347\u7ea7\u5185\u6838\u53ef\u4ee5\u5c1d\u8bd5\u81ea\u5df1\u7f16\u8bd1\uff0c\u4f46\u50cf\u6211\u8fd9\u79cd\u53c8\u61d2\u53c8\u83dc\u7684\uff0c\u8fd8\u662f\u7528\u522b\u4eba\u7f16\u8bd1\u597d\u7684\u5305\u7b97\u4e86\u3002 centos\u53ef\u4ee5\u7528elrepo\u7684\u5305\u3002\u8bf4\u660e\u53ef\u4ee5\u770b\u5b98\u65b9\u7f51\u7ad9\uff0c\u5728\u8fd9\u91cc\uff1aELRepo \u7b2c\u4e00\u6b65\uff0c\u5bfc\u5165\u516c\u94a5<\/p>\n<pre class=\"wp-block-code\">rpm --import https:\/\/www.elrepo.org\/RPM-GPG-KEY-elrepo.org\n<\/pre>\n<p>\u7b2c\u4e8c\u6b65\uff0c\u5b89\u88c5\u4ed3\u5e93<\/p>\n<pre class=\"wp-block-code\">rpm -Uvh http:\/\/www.elrepo.org\/elrepo-release-7.0-2.el7.elrepo.noarch.rpm\n<\/pre>\n<p>\u8fd9\u91cc\u8981\u6ce8\u610f\u81ea\u5df1centos\u7248\u672c\uff0c\u535a\u4e3b\u8fd9\u91cc\u662fcentos7\uff0celrepo\u4e5f\u63d0\u4f9b\u4e86centos 5\u30016\u7684\u7248\u672c\uff0c\u5177\u4f53\u5730\u5740\u53ef\u4ee5\u770b\u4e0a\u9762\u7684\u94fe\u63a5\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8d34\u51fa\u6765\u4e86\u3002 \u7b2c\u4e09\u6b65\uff0c\u5b89\u88c5\u5185\u6838<\/p>\n<pre class=\"wp-block-code\">yum --enablerepo=elrepo-kernel install kernel-ml\n<\/pre>\n<p>\u5b89\u88c5\u5b8c\u4e4b\u540e\u53ef\u4ee5\u7528\u4e0b\u9762\u547d\u4ee4\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5185\u6838\u3002<\/p>\n<pre class=\"wp-block-code\">awk -F' '$1==\"menuentry \" {print i++ \" : \" $2}' \/etc\/grub2.cfg\n<\/pre>\n<p>\u4e0d\u51fa\u610f\u5916\u7684\u8bdd\uff0c\u5b89\u88c5\u597d\u7684\u65b0\u5185\u6838\u5e94\u8be5\u662f\u7b2c\u4e00\u6761\u8bb0\u5f55\uff0c\u5373\u5e8f\u53f7\u4e3a 0\u3002 \u7b2c\u56db\u6b65\uff0c\u8bbe\u7f6e\u9ed8\u8ba4\u5185\u6838<\/p>\n<pre class=\"wp-block-code\">grub2-set-default 0\n<\/pre>\n<p>\u8fd9\u91cc\u540e\u9762\u7684 0 \u662f\u7b2c\u4e09\u6b65\u4e2d\u5185\u6838\u7684\u5e8f\u53f7\uff0c\u6ce8\u610f\u9009\u62e9\u3002 \u7136\u540e\u4f7f\u9ed8\u8ba4\u5185\u6838\u8bbe\u7f6e\u751f\u6548<\/p>\n<pre class=\"wp-block-code\">grub2-mkconfig -o \/boot\/grub2\/grub.cfg\n<\/pre>\n<p>\u91cd\u542f reboot \u770b\u4e0b\u662f\u5426\u5df2\u7ecf\u5728\u4f7f\u7528\u65b0\u5185\u6838\u3002 \u7b2c\u4e94\u6b65\uff0c\u8bbe\u7f6eBBR\u53c2\u6570 \u7528vi\u6253\u5f00 \/etc\/sysctl.conf \u7f16\u8f91\u6216\u52a0\u5165\u4e0b\u9762\u53c2\u6570<\/p>\n<pre class=\"wp-block-code\">net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr\n<\/pre>\n<p>\u7136\u540e\u4f7f\u914d\u7f6e\u751f\u6548<\/p>\n<pre class=\"wp-block-code\">sysctl -p\n<\/pre>\n<p>\u7528\u547d\u4ee4<\/p>\n<pre class=\"wp-block-code\">lsmod | grep bbr\n<\/pre>\n<p>\u770b\u4e0bBBR\u662f\u5426\u5df2\u542f\u52a8\u3002\u5982\u679c\u8fd4\u56de\u51fa\u73b0BBR\u5b57\u6837\uff0c\u5219\u8bf4\u660eBBR\u5df2\u5f00\u542f\u3002 \u6700\u540e\u4e00\u6b65\uff0c\u6709\u4e9b\u4eba\u53ef\u80fd\u548c\u535a\u4e3b\u4e00\u6837VPS\u7a7a\u95f4\u6bd4\u8f83\u7d27\uff0c\u6216\u8005\u6709\u591a\u5c11\u5f3a\u8feb\u75c7\uff0c\u559c\u6b22\u6ca1\u6709\u591a\u4f59\u4e1c\u897f\u7684\uff0c\u53ef\u4ee5\u628a\u65e7\u5185\u6838\u7ed9\u5220\u6389\u3002<\/p>\n<pre class=\"wp-block-code\">yum remove kernel\n\n#\u6216 yum autoremove kernel\n<\/pre>\n<p>\u5bf9\u81ea\u5df1\u7684VPS\u6765\u8bf4\uff0cBBR\u7b97\u6cd5\u5e26\u6765\u7684\u52a0\u901f\u8fd8\u662f\u5f88\u660e\u663e\u7684\u3002\u535a\u4e3b\u7528\u7684vultr\uff0c\u4f4d\u7f6e\u5728LA\u3002\u4ee5\u524d\u6cb9\u7ba1\u53ea\u80fd\u52c9\u5f3a480p\uff0c\u73b0\u5728\u53ef\u4ee51080p\u4e0d\u5361\u3002\u8d85\u723d\u3002 \u8fd9\u7bc7\u6587\u7ae0\u53c2\u8003\u4e86\u4ee5\u4e0b\u7f51\u9875\uff1a<\/p>\n<p>https:\/\/www.isthnew.com\/centos7-bbr http:\/\/hugyou.blog.51cto.com\/11674506\/1794198 http:\/\/blog.ttionya.com\/article-971.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b21\u542c\u5230BBR\u7b97\u6cd5\u662f\u5728\u77e5\u4e4e\u4e0a\uff0c\u540e\u6765\u4e86\u89e3\u5230\u8fd9\u4e1c\u897f\u5bf9shadowsocks\u4e5f\u6709\u4f5c\u7528\uff0c\u5c31\u8bd5\u7740\u628a\u81ea\u5df1VPS\u7684cent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[],"class_list":["post-5399","post","type-post","status-publish","format-standard","hentry","category-notes"],"_links":{"self":[{"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/posts\/5399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/comments?post=5399"}],"version-history":[{"count":0,"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/posts\/5399\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/media?parent=5399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/categories?post=5399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gwlin.com\/blog\/wp-json\/wp\/v2\/tags?post=5399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}