{"id":261,"date":"2018-03-02T00:00:04","date_gmt":"2018-03-01T16:00:04","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=261"},"modified":"2018-03-02T00:00:04","modified_gmt":"2018-03-01T16:00:04","slug":"ubuntu-16-04-update-kernel-enable-bbr","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/ubuntu-16-04-update-kernel-enable-bbr.html","title":{"rendered":"Ubuntu 16.04 LTS\u66f4\u6362\u5185\u6838\u542f\u7528BBR"},"content":{"rendered":"<p>\u867d\u7136\u6211\u73b0\u5728\u7528\u7684\u6700\u591a\u7684Linux\u53d1\u884c\u7248\u8fd8\u662fCentOS7\uff0c\u4f46\u662f\uff0c\u6709\u7684\u60c5\u51b5\u5e76\u6ca1\u6709CentOS\u7cfb\u7edf\u53ef\u9009\uff0c\u6bd4\u5982\u8bf4AWS\uff0c\u60f3\u7528CentOS\u90fd\u7528\u4e0d\u4e86\uff0c\u5076\u5c14\u8fd8\u662f\u8981\u6298\u817e\u4e00\u4e0bUbuntu\u7684\uff0c\u800c\u76ee\u524d\u800c\u8a00\uff0cUbuntu\u7528\u7684\u66f4\u591a\u7684\u662fUbuntu 16.04 LTS\u7248\u672c\uff0c\u624b\u4e0a\u6b63\u597d\u6709\u4e00\u53f0\u8fd9\u4e2a\u7248\u672c\u7684VPS\uff0c\u6b63\u597d\u8bb0\u5f55\u4e00\u4e0b\u6298\u817e\u8fc7\u7a0b\u3002<br \/>\n<!--more--><br \/>\n\u5176\u5b9e\u548c\u7f51\u4e0a\u5f88\u591a\u6d41\u4f20\u7684\u65b9\u6cd5\u4e0d\u4e00\u6837\uff0c\u6211\u662f\u975e\u5e38\u4e0d\u559c\u6b22\u76f4\u63a5\u5b89\u88c5deb\u5305\u7684\u65b9\u5f0f\u5b89\u88c5\u8f6f\u4ef6\uff0c\u660e\u660e\u6709\u66f4\u4f18\u79c0\u66f4\u5408\u9002\u7684apt\u5305\u7ba1\u7406\u5668\uff0c\u975e\u8981\u5200\u8015\u706b\u79cd\u7684\u624b\u52a8\u5b89\u88c5deb\u5305\uff0c\u8fd9\u4e0d\u662f\u6298\u817e\u4e48\u3002<br \/>\n\u9996\u5148\u662f\u66f4\u65b0\u7cfb\u7edf\uff1a<\/p>\n<pre><code>apt update\n<\/code><\/pre>\n<p>\u7136\u540e\u662f\u5b89\u88c5\u5305\u542b\u65b0\u7248\u5185\u6838\u7684\u8f6f\u4ef6\u5305\uff0c\u76f4\u63a5\u5b89\u88c5\u5c31\u884c\uff0c\u76ee\u524d\uff082018\u5e743\u6708\uff09\uff0c\u6700\u65b0\u7684Linux Kernel\u7248\u672c\u662f4.13\uff1a<\/p>\n<pre><code>apt install linux-image-generic-hwe-16.04\n<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u9700\u8981\u91cd\u542f\u4e00\u4e0b\u7cfb\u7edf\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>reboot\n<\/code><\/pre>\n<p>\u7b49\u51e0\u79d2\u4e4b\u540e\uff0c\u518d\u8fde\u4e0aVPS\uff0c\u67e5\u770b\u4e00\u4e0b\u5f53\u524d\u5185\u6838\u662f\u4e0d\u662f4.9+\u7248\u672c\uff1a<\/p>\n<pre><code>root@BWH123:~# uname -a\nLinux DOAMS3 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU\/Linux\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u51fa\uff0c\u73b0\u5728\u5df2\u7ecf\u662f4.13\u5185\u6838\u4e86\uff0c\u7b26\u5408\u542f\u7528BBR\u7684\u6761\u4ef6\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u5f00\u542fBBR\u4e86\u3002<br \/>\n\u590d\u5236\u7c98\u8d34\u5982\u4e0b\u4e09\u6761\u547d\u4ee4\u5230SSH\uff1a<\/p>\n<pre><code>echo \"net.core.default_qdisc=fq\" &gt;&gt; \/etc\/sysctl.conf\necho \"net.ipv4.tcp_congestion_control=bbr\" &gt;&gt; \/etc\/sysctl.conf\nsysctl -p\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u5f00\u542f\u4e86\u3002\u63a5\u4e0b\u6765\u662f\u9a8c\u8bc1\uff0c\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>root@BWH123:~# lsmod | grep bbr\ntcp_bbr                20480  0\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u51faBBR\u5df2\u7ecf\u5f00\u542f\u6210\u529f\u4e86\u3002<br \/>\n\u4ee5\u4e0a\u547d\u4ee4\u5728<a href=\"https:\/\/cloudbool.com\/archive\/go\/vultr\">Vultr<\/a>\u3001<a href=\"https:\/\/cloudbool.com\/archive\/go\/bwh1\">BandwagonHost<\/a>\u6d4b\u8bd5\u901a\u8fc7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u867d\u7136\u6211\u73b0\u5728\u7528\u7684\u6700\u591a\u7684Linux\u53d1\u884c\u7248\u8fd8\u662fCentOS7\uff0c\u4f46\u662f\uff0c\u6709\u7684\u60c5\u51b5\u5e76\u6ca1\u6709CentOS\u7cfb\u7edf\u53ef\u9009\uff0c\u6bd4\u5982\u8bf4AWS &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/ubuntu-16-04-update-kernel-enable-bbr.html\"> <span class=\"screen-reader-text\">Ubuntu 16.04 LTS\u66f4\u6362\u5185\u6838\u542f\u7528BBR<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[182],"tags":[143,103],"class_list":["post-261","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bbr","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}