In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Upgrade process:
Original system: CentOS7.3
[root@my-e450] # uname-r3.10.0-514.el7.x86_64
Install the required software packages:
# yum update# yum install-y ncurses-devel make gcc bc bison flex elfutils-libelf-devel openssl-devel grub2
Download the kernel from https://www.kernel.org/
The kernel version I downloaded here is 5.0.21.
Link: https://pan.baidu.com/s/1W1Bc6GYuwgzNG0uW6i2__w
Extraction code: nqhj
Copy or upload the u disk to the server and extract it to the / usr/src/kernels folder
Tar-xvf linux-5.0.21.tar.gz-C / usr/src/kernels/cd / usr/src/kernels/linux-5.0.21
Copy the original configuration:
Cp-v cp / boot/config-3.10.0-514.el7.x86_64 / usr/src/kernels/linux-5.0.21/.config
Configure the kernel:
Make menuconfig
You can customize the kernel features here. If you are not familiar with the kernel, simply use the tab key to select save to save, and then exit.
Then, df-h checks the free space on the hard disk to make sure there is still space left for 16GB, and the compilation process uses a lot of space.
Well, it's compiling now!
[root@my-e450 linux-5.0.21] # nproc
two
Nproc check the number of cpu cores
Make-j 2 & & make modules_install-j 2 & & make install-j 2
Here, if not more than 4 cores,-j followed by the number of cpu cores; if more than 4 cores, it is recommended to use-j 4, um, steady
Let's go to read a book. It will take more than an hour.
Continue to execute after compilation:
# grub2-set-default "CentOS Linux (5.0.21) 7 (Cores)" # grub2-editenv list#grub2-mkconfig-o / boot/grub2/grub.cfg
Restart the system
# reboot
After reboot, you will automatically select the new kernel that has just been compiled and enter your user name and password to log in to the system.
[root@my-e450 ~] # uname-srLinux 5.0.21
Kernel upgrade succeeded ~
Summary
The above is the CentOS7 upgrade kernel kernel5.0 version introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
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: 0
*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.