In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to upgrade centos7 kernel 3.10 to 4.3.3, I believe most people still do not know how, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
##Install dependent software
$ sudo yum update -y$ sudo systemctl stop firewalld && sudo systemctl disable firewalld$yum groupinstall "Development Tools"$yum -y install gcc ncurses ncurses-devel bc openssl-devel openssl-devel perl-devel
yum groupinstall "package group name" allows you to install many packages at once without worrying about forgetting to install one!
##Download Source Code Download the source code for the latest Linux kernel 4.3.3 release from the official Linux kernel repository using the wget command. You can also download the kernel directly from kernel.org using your browser.
$wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.3.3.tar.xz
Once the file is downloaded we extract it in the/usr/src/folder using the following command.
$ tar -xf linux-4.3.3.tar.xz -C /usr/src/$ cd /usr/src/linux-4.3.3/
If you are compiling the kernel for the first time and there are no leftover files from the last time, you can skip the following steps:
$ make mrproper
##Configuring a New Kernel Executing the following command displays a pop-up window with all the menus. Here we can select our new kernel configuration. If you are unfamiliar with these menus, tap ESC twice to exit.
$make menuconfig
##Compile Linux kernel $make Compilation takes at least 20-30 minutes.
##Install Linux Kernel The following commands create files in the/boot directory and create a new kernel entry in the Grub menu. $make modules_install install
####View kernel version after update
$ uname -r4.3.3
Important: The kernel is still the default version. If you reboot directly after this step is completed, the kernel version used after restarting is still the default 3.10. The new 4.3.3 will not be used. If you want to modify the boot order, you need to go to the next step to check the default boot order.
$awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfgCentOS Linux (4.3.3) 7 (Core)CentOS Linux, with Linux 3.10.0-123.el7.x86_64CentOS Linux, with Linux 0-rescue-53e870096b2044e5b161f9fd6445ff14
The default boot sequence starts at 0, but our new kernel is inserted from scratch (currently at 0, while 3.10 is at 1), so you need to select 0, if you want to take effect the latest kernel, you need to
grub2-set-default 0
Then reboot and use the new kernel. Here is the kernel version used after reboot.
[root@ip-10-10-17-4 ~]# uname -r4.3.3
When it's finished, the kernel is up to date.
The above is "centos 7 kernel 3.10 how to upgrade to 4.3.3" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 289
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.