Leave Your Message
*Name Cannot be empty!
* Enter product details such as size, color,materials etc. and other specific requirements to receive an accurate quote. Cannot be empty
Kopa Khoteshene
Litsela tse tharo tsa ho ntlafatsa kernel ea sistimi ea CentOS ea likhomphutha tsa indasteri
Blog

Litsela tse tharo tsa ho ntlafatsa kernel ea sistimi ea CentOS ea likhomphutha tsa indasteri

2024-10-17 15:08:44

Nakong ea ts'ebeliso ea CentOS, ho ke ke ha qojoa ho ntlafatsa kernel, empa ka linako tse ling ka lebaka la mathata a ho itšetleha ka ho bokella khoutu ea mohloli, ha se mananeo ohle a tšehetsang mofuta oa morao-rao oa kernel, kahoo tse latelang li tla hlahisa litsela tse tharo tsa ho ntlafatsa kernel.

Hlokomela:
Mabapi le mefuta ea kernel:
ml ho kernel-ml ke khutsufatso ea [mainline stable] ka Senyesemane, 'me mofuta oa morao-rao oa stable mainline o thathamisitsoe ho elrepo-kernel.
lt ho kernel-lt ke khutsufatso ea [tšehetso ea nako e telele] ka Senyesemane, 'me mofuta oa tšehetso ea nako e telele o thathamisitsoe ho elrepo-kernel.
Sheba mofuta oa kernel
lebitso le sa fetoheng -r

Setšoantšo sa 1
Tafole ea likateng

1. ho kenya yum

1. Kenya mohloli oa polokelo
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
2. Sheba liphutheloana tse ka kenngoang
yum --enablerepo="elrepo-kernel" lethathamo --showduplicates | sort -r | grep
kernel-ml.x86_64
3. Khetha mofuta oa ML kapa oa LT oo u ka o kenyang
Haeba ho se na mofuta o boletsoeng, mofuta oa morao-rao o kentsoe ka bohona
Kenya mofuta oa ML
yum --enablerepo=elrepo-kernel kenya kernel-ml-devel kernel-ml -y
Kenya mofuta oa LT, khetha sena bakeng sa K8S eohle
yum --enablerepo=elrepo-kernel kenya kernel-lt-devel kernel-lt -y
4. Hlahloba tatellano ea hona joale ea ho qala kernel
awk -F\' '$1=="menuentry " {printa $2}' /etc/grub2.cfg
5. Fetola ntho ea boot ea kamehla
xxx ke nomoro ea serial, e hlalosang ntho ea xth lenaneng la boot e le ntho ea boot, 'me x e qala ho baloa ho tloha ho 0
xxxx-e behiloeng ke grub2
Mohlala, haeba o batla ho e beha ho boot ka kernel 4.4
ebe o kenya ka ho toba "grub2-set-default 0", 'me u ka qala ho tloha ho 4.4 nakong e tlang ha u qala
Hlahloba tatellano ea boot ea kernel
[root@localhost ~] awk -F\' '$1=="menuentry " {printa $2}' /etc/grub2.cfg
CentOS Linux (4.4.179-1.el7.elrepo.x86_64) 7 (Sehlohlolo)
CentOS Linux (3.10.0-693.el7.x86_64) 7 (Sehlohlolo)
CentOS Linux (0-rescue-6d4c599606814867814f1a8eec7bfd1e) 7 (Sehlohlolo)
Beha nomoro ea tatellano ea boot
[root@localhost ~] grub2-set-default 0
Qala hape
qala botjha
Sheba mofuta oa kernel
lebitso le sa fetoheng -r

Setšoantšo sa 2

2. Ho kenya RPM

Sheba mofuta oa kernel
lebitso le sa fetoheng -r
1. Fumana mofuta
Hobane mohlodi wa ELRepo ke mofuta wa moraorao, mofuta wa kgale wa kernel o ka jarollwa ka letsoho feela.
Fumana mofuta oa nalane oa kernel rpm:
http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/
2. O hloka ho jarolla mefuta e meraro ea rpm
wget
http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt
devel-4.4.215-1.el7.elrepo.x86_64.rpm
wget
http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt
lihlooho-4.4.215-1.el7.elrepo.x86_64.rpm
wget
http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt-
4.4.215-1.el7.elrepo.x86_64.rpm
3. Kenya kernel
rpm -ivh kernel-lt-4.4.215-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-lt-devel-4.4.215-1.el7.elrepo.x86_64.rpm
kapa
#Kenya tsohle ka ho tobetsa ho le leng
rpm -Uvh *.rpm
4. Netefatsa mofuta oa kernel o kentsoeng
[root@localhost ~]# rpm -qa | grep kernel
lihlooho-tsa kernel-3.10.0-1160.15.2.el7.x86_64
kernel-devel-3.10.0-1160.49.1.el7.x86_64
lisebelisoa-tsa-kernel-libs-3.10.0-957.el7.x86_64
kernel-3.10.0-957.el7.x86_64
kernel-ml-4.9.9-1.el7.elrepo.x86_64
kernel-lt-4.4.215-1.el7.elrepo.x86_64
lisebelisoa tsa kernel-3.10.0-957.el7.x86_64
kernel-lt-devel-4.4.215-1.el7.elrepo.x86_64

5. Beha qalo
Hlahloba odara ea ho qala
[root@localhost ~] # awk -F\' '$1=="menuentry " {printa $2}' /etc/grub2.cfg
CentOS Linux (4.4.215-1.el7.elrepo.x86_64) 7 (Sehlohlolo)
CentOS Linux (4.9.9-1.el7.elrepo.x86_64) 7 (Sehlohlolo)
CentOS Linux (3.10.0-957.el7.x86_64) 7 (Sehlohlolo)
CentOS Linux (0-rescue-b91f945269084aa98e8257311ee713c5) 7 (Sehlohlolo)
Beha tatellano ea boot
[root@localhost ~] # grub2-set-default 0
Qala bocha ho qala ho sebetsa
[root@localhost ~] # qala botjha

3. Ho kenya khoutu ea mohloli

1. Kenya sephutheloana sa software sa mantlha
Yum kenya -y gcc etsa git ctags ncurses-devel openssl-devel
Yum kenya -y bison flex elfutils-libelf-devel bc
2. Theha bukana ea pokello ea kernel
Sebelisa bukana ea kernelbuild tlas'a lehae
mkdir ~/kernelbuild
3. Fumana khoutu ea mohloli oa kernel
Sebaka se bonahatsang sa Univesithi ea Tsinghua:
https://mirror.tuna.tsinghua.edu.cn/kernel/v4.x/?C=M&O=D
Aterese e 'ngoe ea ho jarolla sephutheloana sa ho kenya khoutu ea mohloli:
https://mirrors.edge.kernel.org/pub/linux/kernel/
linux-4.xx.xx.tar.xz
linux-4.xx.xx.tar.gz
Mefuta ena ka bobeli ea amoheleha, tar.xz e na le sekhahla se phahameng sa khatello le boholo ba faele bo bonyenyane.
Khoasolla inthaneteng: wget https://mirror.tuna.tsinghua.edu.cn/kernel/v4.x/linux-4.17.11.tar.xz
4. Notlolla khoutu ea kernel
Kamora ho e bula, kenya bukana ea mohloli:
tar -xvJf linux-4.17.11.tar.xz
Ho netefatsa hore sefate sa kernel se hloekile ka botlalo, kenya bukana ea kernel ebe u phetha taelo ea make mrproper:
cd linux-4.17.11
hloekisa && etsa mrproper

5. Tlhophiso ea kernel
Kopitsa faele ea hona joale ea tlhophiso ea kernel
config-3.10.0-862.el7.x86_64 ke faele ea tlhophiso ea kernel ea tikoloho ea ka ea hajoale, e fetole ho latela boemo ba 'nete
cp /boot/config-3.10.0-862.el7.x86_64 .config
Tlhophiso e tsoetseng pele
y e butswe, n e holofetse, mme m e butswe ha ho hlokahala.
etsa menuconfig: sebopeho sa khale sa ncurses, se nkeloe sebaka ke nconfig
etsa nconfig: Mohala o mocha oa taelo oa ncurses interface
6. Bokella le ho kenya
Bokella kernel
Haeba o na le mochini o nang le quad-core, x e ka ba 8
etsa -jx
Kenya kernel
Kamora ho bokella kernel, kenya: Temoso: Ho tloha mona ho ea pele, o hloka litokelo tsa motso ho phethahatsa litaelo, ho seng joalo e tla hloleha.
etsa hore modules_install e kenngoe
7. Hlophisa qalo
Hlahloba tatellano ea ho qala
[root@localhost ~] # awk -F\' '$1=="menuentry " {printa $2}' /etc/grub2.cfg
CentOS Linux (4.17.11-1.el7.elrepo.x86_64) 7 (Sehlohlolo)
CentOS Linux (4.9.9-1.el7.elrepo.x86_64) 7 (Sehlohlolo)
CentOS Linux (3.10.0-957.el7.x86_64) 7 (Sehlohlolo)
CentOS Linux (0-rescue-b91f945269084aa98e8257311ee713c5) 7 (Sehlohlolo)
Beha odara ea boot
[root@localhost ~] # grub2-set-default 0
Qala bocha ho qala ho sebetsa
[root@localhost ~] # qala botjha


Lihlahisoa tse Amanang

01

LET'S TALK ABOUT YOUR PROJECTS

  • sinsmarttech@gmail.com
  • 3F, Block A, Future Research & Innovation Park, Yuhang District, Hangzhou, Zhejiang, China

Our experts will solve them in no time.