Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

After Singles Day holiday, continue to play weird "upgrade"

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Singles Day has just passed, no, this is no longer the monopoly of singles, it should be a shopping carnival, I believe your shopping cart goods are arriving one after another, but all kinds of bank cards are in arrears. It is time to work hard again, get ready for the next year, upgrade all kinds of equipment and fight again next year.

I heard that the sales volume of double 11 this year is 300 billion yuan, which is close to Black Friday. I don't know how to calculate this 300 billion without an excellent server computing power, so Alibaba is tested every year and is making progress every year. Of course, we also keep up with the pace of the giant, linux operating system is currently the Internet's most cost-effective system: free, high concurrency, multi-user, etc., is basically the first choice to deploy services, but kernel is the core component of Linux, but it is also a constantly optimized, patched product, now kernel has gone to 4.20.X, is your linux still 2.6.X?

The lower version of kernel has many loopholes and lacks the features of the new version. Do you often wonder: I don't want to reinstall the system because my data and platform are running well on the old platform, but I have to face the fact that low-version vulnerabilities can be exploited, destroyed or * * system data at any time.

So upgrading kernel is necessary, but upgrading kernel sometimes fails, and users are usually very confused. Rui Jiangyun especially loves our users and has done a lot of tests to sort out the daily version upgrades.

Note: some people will say that I can yum update successfully on a physical device, why not a CVM? Reason: the driver / module of the virtualization layer is not installed in yum update.

Rui Jiangyun made some statistics on the existing operating system version: summary-just use the 4.4.X kernel.

Let's teach you how to upgrade:

# step 1: install the latest https support

Yum-y update nss

Yum-y install openssl

Yum-y install glibc

# step 2: use the yum source of the third party of elrepo

Rpm-- import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Rpm-Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

# step 3: install the supporting environment needed to upgrade the kernel kernel

Yum-y install gcc-- enablerepo=elrepo

Yum-y install libgcc*-- enablerepo=elrepo

Yum-y groupinstall "Development Tools"-- enablerepo=elrepo

Yum-y install ncurses-devel-- enablerepo=elrepo

Yum-y install hmaccalc zlib-devel binutils-devel elfutils-libelf-devel-- enablerepo=elrepo

# step 4: start the upgrade. We need to install the long-term supported version of kernel-lt, not the kernel version. Lt=long term

Yum repolist

Yum install-y dracut-- enablerepo=elrepo

Yum install-y dracut-kernel-- enablerepo=elrepo

Yum-enablerepo=elrepo-kernel install kernel-lt-y

Yum-enablerepo=elrepo-kernel update-y

Yum-enablerepo=elrepo upgrade

Yum install xe-guest-utilities-xenstore.x86_64-y

# step 5: modify grub to choose the kernel of 4.4.X (otherwise you make the wrong choice and the system won't work again)

After the upgrade, do you think the system is fast? If you haven't upgraded yet, just upgrade the experience. Recently, Rui Jiangyun is also engaged in activities, and you can buy a CVM to practice at any time.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report