{"id":56333,"date":"2023-06-27T18:28:14","date_gmt":"2023-06-27T10:28:14","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=56333"},"modified":"2023-06-27T18:28:14","modified_gmt":"2023-06-27T10:28:14","slug":"centos7-latest-kernel","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos7-latest-kernel.html","title":{"rendered":"CentOS 7 \u600e\u6837\u5b89\u88c5\u6216\u5347\u7ea7\u6700\u65b0\u7684\u5185\u6838\uff1f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u867d\u7136\u6709\u4e9b\u4eba\u4f7f\u7528 Linux \u6765\u8868\u793a\u6574\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f46\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e25\u683c\u5730\u6765\u8bf4\uff0cLinux \u53ea\u662f\u4e2a\u5185\u6838\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u53d1\u884c\u7248\u662f\u4e00\u4e2a\u5b8c\u6574\u529f\u80fd\u7684\u7cfb\u7edf\uff0c\u5b83\u5efa\u7acb\u5728\u5185\u6838\u4e4b\u4e0a\uff0c\u5177\u6709\u5404\u79cd\u5404\u6837\u7684\u5e94\u7528\u7a0b\u5e8f\u5de5\u5177\u548c\u5e93\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u867d\u7136\u6709\u4e9b\u4eba\u4f7f\u7528 Linux \u6765\u8868\u793a\u6574\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f46\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e25\u683c\u5730\u6765\u8bf4\uff0cLinux \u53ea\u662f\u4e2a\u5185\u6838\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u53d1\u884c\u7248\u662f\u4e00\u4e2a\u5b8c\u6574\u529f\u80fd\u7684\u7cfb\u7edf\uff0c\u5b83\u5efa\u7acb\u5728\u5185\u6838\u4e4b\u4e0a\uff0c\u5177\u6709\u5404\u79cd\u5404\u6837\u7684\u5e94\u7528\u7a0b\u5e8f\u5de5\u5177\u548c\u5e93\u3002<\/p>\n

\u5728\u6b63\u5e38\u64cd\u4f5c\u671f\u95f4\uff0c\u5185\u6838\u8d1f\u8d23\u6267\u884c\u4e24\u4e2a\u91cd\u8981\u4efb\u52a1\uff1a<\/p>\n

    \n
  1. \u4f5c\u4e3a\u786c\u4ef6\u548c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u7684\u8f6f\u4ef6\u4e4b\u95f4\u7684\u63a5\u53e3\u3002<\/li>\n
  2. \u5c3d\u53ef\u80fd\u9ad8\u6548\u5730\u7ba1\u7406\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<\/ol>\n

    \u4e3a\u6b64\uff0c\u5185\u6838\u901a\u8fc7\u5185\u7f6e\u7684\u9a71\u52a8\u7a0b\u5e8f\u6216\u4ee5\u540e\u53ef\u4f5c\u4e3a\u6a21\u5757\u5b89\u88c5\u7684\u9a71\u52a8\u7a0b\u5e8f\u4e0e\u786c\u4ef6\u901a\u4fe1\u3002<\/p>\n

    \u4f8b\u5982\uff0c\u5f53\u4f60\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u7684\u7a0b\u5e8f\u60f3\u8981\u8fde\u63a5\u5230\u65e0\u7ebf\u7f51\u7edc\u65f6\uff0c\u5b83\u4f1a\u5c06\u8be5\u8bf7\u6c42\u63d0\u4ea4\u7ed9\u5185\u6838\uff0c\u540e\u8005\u53c8\u4f1a\u4f7f\u7528\u6b63\u786e\u7684\u9a71\u52a8\u7a0b\u5e8f\u8fde\u63a5\u5230\u7f51\u7edc\u3002<\/p>\n

    \u968f\u7740\u65b0\u7684\u8bbe\u5907\u548c\u6280\u672f\u5b9a\u671f\u51fa\u6765\uff0c\u5982\u679c\u6211\u4eec\u60f3\u5145\u5206\u5229\u7528\u5b83\u4eec\uff0c\u4fdd\u6301\u6700\u65b0\u7684\u5185\u6838\u5c31\u5f88\u91cd\u8981\u3002\u6b64\u5916\uff0c\u66f4\u65b0\u5185\u6838\u5c06\u5e2e\u52a9\u6211\u4eec\u5229\u7528\u65b0\u7684\u5185\u6838\u51fd\u6570\uff0c\u5e76\u4fdd\u62a4\u81ea\u5df1\u514d\u53d7\u5148\u524d\u7248\u672c\u4e2d\u53d1\u73b0\u7684\u6f0f\u6d1e\u7684\u653b\u51fb\u3002<\/p>\n

    \u51c6\u5907\u597d\u4e86\u5728 CentOS 7 \u6216\u5176\u884d\u751f\u4ea7\u54c1\uff08\u5982 RHEL 7\u548c Fedora\uff09\u4e0a\u66f4\u65b0\u5185\u6838\u4e86\u4e48\uff1f\u5982\u679c\u662f\u8fd9\u6837\uff0c\u8bf7\u7ee7\u7eed\u9605\u8bfb\uff01<\/p>\n

    \u6b65\u9aa4 1\uff1a\u68c0\u67e5\u5df2\u5b89\u88c5\u7684\u5185\u6838\u7248\u672c<\/strong><\/div>\n

    \u8ba9\u6211\u4eec\u5b89\u88c5\u4e86\u4e00\u4e2a\u53d1\u884c\u7248\uff0c\u5b83\u5305\u542b\u4e86\u4e00\u4e2a\u7279\u5b9a\u7248\u672c\u7684\u5185\u6838\u3002\u4e3a\u4e86\u5c55\u793a\u5f53\u524d\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u7684\u7248\u672c\uff0c\u6211\u4eec\u53ef\u4ee5\uff1a<\/p>\n

    # uname -sr<\/pre>\n

    \u4e0b\u9762\u7684\u56fe\u7247\u5c55\u793a\u4e86\u5728\u4e00\u53f0 CentOS 7 \u670d\u52a1\u5668\u4e0a\u7684\u8f93\u51fa\u4fe1\u606f\uff1a<\/p>\n

    \"\"<\/p>\n

    \u5982\u679c\u6211\u4eec\u73b0\u5728\u8fdb\u5165 https:\/\/www.kernel.org\/<\/a>\uff0c\u5728\u64b0\u5199\u672c\u6587\u65f6\uff0c\u6211\u4eec\u770b\u5230\u6700\u65b0\u7684\u5185\u6838\u7248\u672c\u662f4.10.1\uff08\u5176\u4ed6\u7248\u672c\u53ef\u4ee5\u4ece\u540c\u4e00\u7f51\u7ad9\u83b7\u5f97\uff09\u3002<\/p>\n

    \u8fd8\u8981\u8003\u8651\u7684\u4e00\u4e2a\u91cd\u8981\u7684\u4e8b\u60c5\u662f\u5185\u6838\u7248\u672c\u7684\u751f\u547d\u5468\u671f - \u5982\u679c\u4f60\u5f53\u524d\u4f7f\u7528\u7684\u7248\u672c\u63a5\u8fd1\u5b83\u7684\u751f\u547d\u5468\u671f\u7ed3\u675f\uff0c\u90a3\u4e48\u5728\u8be5\u65e5\u671f\u540e\u5c06\u4e0d\u4f1a\u63d0\u4f9b\u66f4\u591a\u7684 bug \u4fee\u590d\u3002\u5173\u4e8e\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u5185\u6838\u53d1\u5e03<\/a>\u9875\u3002<\/p>\n

    \n\u6b65\u9aa4 2\uff1a\u5728 CentOS 7 \u4e2d\u5347\u7ea7\u5185\u6838<\/strong>\n<\/div>\n

    \u5927\u591a\u6570\u73b0\u4ee3\u53d1\u884c\u7248\u63d0\u4f9b\u4e86\u4e00\u79cd\u4f7f\u7528 yum \u7b49\u5305\u7ba1\u7406\u7cfb\u7edf<\/a>\u548c\u5b98\u65b9\u652f\u6301\u7684\u4ed3\u5e93\u5347\u7ea7\u5185\u6838\u7684\u65b9\u6cd5\u3002<\/p>\n

    \u4f46\u662f\uff0c\u8fd9\u53ea\u4f1a\u5347\u7ea7\u5185\u6838\u5230\u4ed3\u5e93\u4e2d\u53ef\u7528\u7684\u6700\u65b0\u7248\u672c - \u800c\u4e0d\u662f\u5728 https:\/\/www.kernel.org\/<\/a> \u4e2d\u53ef\u7528\u7684\u6700\u65b0\u7248\u672c\u3002\u4e0d\u5e78\u7684\u662f\uff0cRed Hat \u53ea\u5141\u8bb8\u4f7f\u7528\u524d\u8005\u5347\u7ea7\u5185\u6838\u3002<\/p>\n

    \u4e0e Red Hat \u4e0d\u540c\uff0cCentOS \u5141\u8bb8\u4f7f\u7528 ELRepo\uff0c\u8fd9\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u4ed3\u5e93\uff0c\u53ef\u4ee5\u5c06\u5185\u6838\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002<\/p>\n

    \u8981\u5728 CentOS 7 \u4e0a\u542f\u7528 ELRepo \u4ed3\u5e93\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n

    # rpm --import https:\/\/www.elrepo.org\/RPM-GPG-KEY-elrepo.org\r\n# rpm -Uvh http:\/\/www.elrepo.org\/elrepo-release-7.0-2.el7.elrepo.noarch.rpm<\/pre>\n

    \"\"<\/p>\n

    \u4ed3\u5e93\u542f\u7528\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5217\u51fa\u53ef\u7528\u7684\u5185\u6838\u76f8\u5173\u5305\uff1a<\/p>\n

    # yum --disablerepo=\"*\" --enablerepo=\"elrepo-kernel\" list available<\/pre>\n

    \"\"<\/p>\n

    \u63a5\u4e0b\u6765\uff0c\u5b89\u88c5\u6700\u65b0\u7684\u4e3b\u7ebf\u7a33\u5b9a\u5185\u6838\uff1a<\/p>\n

    # yum --enablerepo=elrepo-kernel install kernel-ml<\/pre>\n

    \"\"<\/p>\n

    \u6700\u540e\uff0c\u91cd\u542f\u673a\u5668\u5e76\u5e94\u7528\u6700\u65b0\u5185\u6838\uff0c\u63a5\u7740\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u68c0\u67e5\u6700\u65b0\u5185\u6838\u7248\u672c\uff1a<\/p>\n

    uname -sr<\/pre>\n

    \"\"<\/p>\n

    \n

    \u6b65\u9aa4 3\uff1a\u8bbe\u7f6e GRUB \u9ed8\u8ba4\u7684\u5185\u6838\u7248\u672c<\/h3>\n<\/div>\n

    \u4e3a\u4e86\u8ba9\u65b0\u5b89\u88c5\u7684\u5185\u6838\u6210\u4e3a\u9ed8\u8ba4\u542f\u52a8\u9009\u9879\uff0c\u4f60\u9700\u8981\u5982\u4e0b\u4fee\u6539 GRUB \u914d\u7f6e\uff1a<\/p>\n

    \u6253\u5f00\u5e76\u7f16\u8f91 \/etc\/default\/grub<\/span>\u5e76\u8bbe\u7f6e
    \nGRUB_DEFAULT=0<\/span>\u3002\u610f\u601d\u662f GRUB \u521d\u59cb\u5316\u9875\u9762\u7684\u7b2c\u4e00\u4e2a\u5185\u6838\u5c06\u4f5c\u4e3a\u9ed8\u8ba4\u5185\u6838\u3002<\/p>\n

    GRUB_TIMEOUT=5\r\nGRUB_DEFAULT=0\r\nGRUB_DISABLE_SUBMENU=true\r\nGRUB_TERMINAL_OUTPUT=\"console\"\r\nGRUB_CMDLINE_LINUX=\"rd.lvm.lv=centos\/root rd.lvm.lv=centos\/swap crashkernel=auto rhgb quiet\"\r\nGRUB_DISABLE_RECOVERY=\"true\"<\/pre>\n

    \u63a5\u4e0b\u6765\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u91cd\u65b0\u521b\u5efa\u5185\u6838\u914d\u7f6e\u3002<\/p>\n

    # grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/pre>\n

    \"\"<\/p>\n

    \u91cd\u542f\u5e76\u9a8c\u8bc1\u6700\u65b0\u7684\u5185\u6838\u5df2\u4f5c\u4e3a\u9ed8\u8ba4\u5185\u6838\u3002<\/p>\n

    \"\"<\/p>\n

    \u606d\u559c\u4f60\uff01\u4f60\u5df2\u7ecf\u5728 CentOS 7 \u4e2d\u5347\u7ea7\u5185\u6838\u4e86\uff01<\/p>\n

    \n

    \u603b\u7ed3<\/h3>\n<\/div>\n

    \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u89e3\u91ca\u4e86\u5982\u4f55\u8f7b\u677e\u5347\u7ea7\u7cfb\u7edf\u4e0a\u7684 Linux \u5185\u6838\u3002\u6211\u4eec\u8fd8\u6ca1\u8bb2\u5230\u53e6\u5916\u4e00\u4e2a\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u6d89\u53ca\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u5185\u6838\uff0c\u8fd9\u53ef\u4ee5\u5199\u6210\u4e00\u672c\u4e66\uff0c\u5e76\u4e14\u4e0d\u63a8\u8350\u5728\u751f\u4ea7\u7cfb\u7edf\u4e0a\u8fd9\u4e48\u505a\u3002<\/p>\n

    \u867d\u7136\u5b83\u662f\u6700\u597d\u7684\u5b66\u4e60\u4f53\u9a8c\u4e4b\u4e00\uff0c\u5e76\u4e14\u5141\u8bb8\u7ec6\u7c92\u5ea6\u914d\u7f6e\u5185\u6838\uff0c\u4f46\u662f\u4f60\u53ef\u80fd\u4f1a\u8ba9\u4f60\u7684\u7cfb\u7edf\u4e0d\u53ef\u7528\uff0c\u5e76\u4e14\u53ef\u80fd\u5fc5\u987b\u4ece\u5934\u91cd\u65b0\u5b89\u88c5\u5b83\u3002<\/p>\n

    \u5982\u679c\u4f60\u4ecd\u7136\u6709\u5174\u8da3\u6784\u5efa\u5185\u6838\u4f5c\u4e3a\u5b66\u4e60\u7ecf\u9a8c\uff0c\u4f60\u53ef\u4ee5\u5728 Kernel Newbies<\/a>\u9875\u9762\u4e2d\u83b7\u5f97\u6307\u5bfc\u3002<\/p>\n


    \n

    via: http:\/\/www.tecmint.com\/install-upgrade-kernel-version-in-centos-7\/<\/a><\/p>\n

    \u4f5c\u8005\uff1aMatei Cezar<\/a> \u8bd1\u8005\uff1ageekpi<\/a> \u6821\u5bf9\uff1awxy<\/a><\/p>\n

    \u672c\u6587\u7531 LCTT<\/a> \u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a> \u8363\u8a89\u63a8\u51fa<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-8310-1.html<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/centos7-latest-kernel.html <\/a>\u7f16\u8f91\uff1a\u738b\u6bc5\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u5bfc\u8bfb \u867d\u7136\u6709\u4e9b\u4eba\u4f7f\u7528 Linux \u6765\u8868\u793a\u6574\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f46\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e25\u683c\u5730\u6765\u8bf4\uff0cLinux \u53ea\u662f\u4e2a\u5185\u6838\u3002\u53e6\u4e00\u65b9 […]<\/p>\n","protected":false},"author":564,"featured_media":56341,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-56333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/564"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=56333"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56333\/revisions"}],"predecessor-version":[{"id":276109,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56333\/revisions\/276109"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/56341"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=56333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=56333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=56333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}