{"id":3971,"date":"2021-11-25T22:57:43","date_gmt":"2021-11-26T06:57:43","guid":{"rendered":"https:\/\/www.xh86.me\/?p=3971"},"modified":"2021-11-25T23:09:48","modified_gmt":"2021-11-26T07:09:48","slug":"centos-%e5%8d%87%e7%ba%a7%e7%b3%bb%e7%bb%9f%e5%86%85%e6%a0%b8%e5%88%b0%e6%9c%80%e6%96%b0%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=3971","title":{"rendered":"CentOS \u5347\u7ea7\u7cfb\u7edf\u5185\u6838\u5230\u6700\u65b0\u7248"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<p style=\"text-align: center;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/11\/wxsync-2021-11-1ad07a371cbba7ab8709c80bb65b71f7.jpeg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/11\/wxsync-2021-11-1ad07a371cbba7ab8709c80bb65b71f7.jpeg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-galleryid=\"\" data-ratio=\"0.42592592592592593\" data-s=\"300,640\" data-type=\"jpeg\" data-w=\"1080\" \/><\/div><\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\"><span style=\"background: transparent; color: #ff0000; border: 0px initial initial;\"><strong>\u8bf4\u660e\uff1a<\/strong><\/span><\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">\u7cfb\u7edf\u7248\u672c\uff1aCentOS 7.x<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">CentOS 7.x\u9ed8\u8ba4\u5185\u6838\u7248\u672c\u662fLinux 3.10\uff0c\u6211\u4eec\u9700\u8981\u90e8\u7f72K8s\u7b49\u9879\u76ee\u9700\u8981\u9ad8\u7248\u672c\u7684\u5185\u6838\u3002<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">Linux Kernel\u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/www.kernel.org\/<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">ELRepo\u6e90\u7f51\u7ad9\uff1ahttp:\/\/elrepo.org\/<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\"><span style=\"background: transparent; color: #ff0000; border: 0px initial initial;\"><strong>\u4e00\u3001\u5347\u7ea7\u7cfb\u7edf<\/strong><\/span><\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u68c0\u67e5\u5f53\u524d CentOS \u7cfb\u7edf\u7248\u672c<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">cat \/etc\/redhat-release<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">CentOS Linux release 7.9.2009 (Core)<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u68c0\u67e5\u5f53\u524d CentOS \u7cfb\u7edf\u5185\u6838\u7248\u672c<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">uname -sr<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">Linux 3.10.0-1160.el7.x86_64<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum clean all #\u6e05\u9664\u7f13\u5b58<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum makecache fast #\u91cd\u65b0\u5efa\u7acb\u7f13\u5b58<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum update -y #\u5347\u7ea7\u7cfb\u7edf<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">reboot #\u91cd\u542f\u7cfb\u7edf<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\"><span style=\"background: transparent; color: #ff0000; border: 0px initial initial;\"><strong>\u4e8c\u3001\u4f7f\u7528elrepo\u6e90\u5347\u7ea7\u5185\u6838<\/strong><\/span><\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">rpm &#8211;import https:\/\/www.elrepo.org\/RPM-GPG-KEY-elrepo.org<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum install https:\/\/www.elrepo.org\/elrepo-release-7.el7.elrepo.noarch.rpm<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">cp \/etc\/yum.repos.d\/elrepo.repo \/etc\/yum.repos.d\/elrepo.repo.bak #\u5907\u4efd\u6587\u4ef6<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u67e5\u770b\u6700\u65b0\u7248\u5185\u6838<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum &#8211;disablerepo=&#8221;*&#8221; &#8211;enablerepo=&#8221;elrepo-kernel&#8221; list available<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">lable<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">Loaded plugins: fastestmirror<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">Loading mirror speeds from cached hostfile<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">* elrepo-kernel: hkg.mirror.rackspace.com<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">Available Packages<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt.x86_64 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt-devel.x86_64 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt-doc.noarch 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt-headers.x86_64 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt-tools.x86_64 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt-tools-libs.x86_64 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-lt-tools-libs-devel.x86_64 5.4.129-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-ml-devel.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-ml-doc.noarch 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-ml-headers.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-ml-tools.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-ml-tools-libs.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">kernel-ml-tools-libs-devel.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">perf.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">python-perf.x86_64 5.13.0-1.el7.elrepo elrepo-kernel<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">\u5185\u6838\u7248\u672c\u8bf4\u660e\uff1a<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#kernel-ml #\u4e3b\u7ebf\u7248\u672c\uff0c\u6bd4\u8f83\u65b0<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#kernel-lt #\u957f\u671f\u652f\u6301\u7248\u672c\uff0c\u6bd4\u8f83\u65e7<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u5b89\u88c5\u65b0\u5185\u6838\uff0c\u8fd9\u91cc\u5b89\u88c5\u4e3b\u7ebf\u7248\u672c<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum &#8211;enablerepo=elrepo-kernel install kernel-ml<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\"><span style=\"background: transparent; color: #ff0000; border: 0px initial initial;\"><strong>\u4e09\u3001\u8bbe\u7f6e\u7cfb\u7edf\u9ed8\u8ba4\u5185\u6838<\/strong><\/span><\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u67e5\u770b\u7cfb\u7edf\u4e0a\u7684\u6240\u6709\u53ef\u7528\u5185\u6838<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">awk -F&#8217; &#8216;$1==&#8221;menuentry &#8221; {print i++ &#8221; : &#8221; $2}&#8217; \/etc\/grub2.cfg<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">0 : CentOS Linux (5.13.0-1.el7.elrepo.x86_64) 7 (Core)<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">1 : CentOS Linux (3.10.0-1160.31.1.el7.x86_64) 7 (Core)<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">2 : CentOS Linux (3.10.0-1160.el7.x86_64) 7 (Core)<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">3 : CentOS Linux (0-rescue-2aaf6a587102425da09a55cad51a2c2f) 7 (Core)<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u8bbe\u7f6e\u9ed8\u8ba4\u5185\u6838\u4e3a\u6211\u4eec\u521a\u624d\u5347\u7ea7\u7684\u5185\u6838\u7248\u672c<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">cp \/etc\/default\/grub \/etc\/default\/grub-bak #\u5907\u4efd<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">grub2-set-default 0 #\u8bbe\u7f6e\u9ed8\u8ba4\u5185\u6838\u7248\u672c<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">\u6216\u8005<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">vi \/etc\/default\/grub<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">GRUB_DEFAULT=saved\u4fee\u6539\u4e3a\uff1a<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">GRUB_DEFAULT=0<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">:wq! #\u4fdd\u5b58\u9000\u51fa<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">\u91cd\u65b0\u521b\u5efa\u5185\u6838\u914d\u7f6e<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">#\u67e5\u770b\u9ed8\u8ba4\u5185\u6838<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">grub2-editenv list<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">yum makecache #\u66f4\u65b0\u8f6f\u4ef6\u5305<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\">reboot #\u91cd\u542f\uff0c\u73b0\u5728\u7cfb\u7edf\u9ed8\u8ba4\u5185\u6838\u5df2\u7ecf\u662f\u6211\u4eec\u521a\u624d\u5347\u7ea7\u540e\u7684\u6700\u65b0\u7248\u672c<\/p>\n<p style=\"margin-bottom: 10px; font-size: 13px; background: #ffffff; text-indent: 2em; color: #000000; font-family: 'Microsoft YaHei', \u5fae\u8f6f\u96c5\u9ed1, Arial, 'Lucida Grande', Tahoma, sans-serif; text-align: start; white-space: normal; border: 0px initial initial;\"><span style=\"background: transparent; color: #ff0000; border: 0px initial initial;\"><strong>\u81f3\u6b64\uff0cCentOS\u5347\u7ea7\u7cfb\u7edf\u5185\u6838\u5230\u6700\u65b0\u7248\u6559\u7a0b\u5b8c\u6210\u3002<\/strong><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf4\u660e\uff1a \u7cfb\u7edf\u7248\u672c\uff1aCentOS 7.x CentOS 7.x\u9ed8\u8ba4\u5185\u6838\u7248\u672c\u662fLinux 3.10\uff0c\u6211\u4eec\u9700\u8981\u90e8\u7f72K [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-3971","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/3971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3971"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/3971\/revisions"}],"predecessor-version":[{"id":4100,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/3971\/revisions\/4100"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}