CentOS6.9 内核升级(2.6.32-696.16.1升级到4.4.101-1.el6.el)
由于本人想在CentOS 6.9上安装Docker容器,发现内核版本过低,2.6.32-696,操作系统是6.9 x86_64位,因此便升级内核到3.8及以上长期稳定支持版本。
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
[[email protected] ~]# uname -r #内核查看确认
2.6.32-696.16.1.el6.x86_64[[email protected] ~]#
[[email protected] ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
[[email protected] ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm #安装yum源
Retrieving http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
Preparing... ########################################### [100%]
1:elrepo-release ########################################### [100%]
[[email protected] ~]# yum --enablerepo=elrepo-kernel install kernel-lt -y #安装内核操作,操作记录如下:
Loaded plugins: fastestmirrorRepository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Setting up Install ProcessLoading mirror speeds from cached hostfile * base: mirrors.cn99.com
* elrepo: mirrors.tuna.tsinghua.edu.cn
* elrepo-kernel: mirrors.tuna.tsinghua.edu.cn
* epel: mirrors.tongji.edu.cn
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
elrepo | 2.9 kB 00:00 elrepo/primary_db | 675 kB 00:00
elrepo-kernel | 2.9 kB 00:00 elrepo-kernel/primary_db | 18 kB 00:00
Resolving Dependencies--> Running transaction check---> Package kernel-lt.x86_64 0:4.4.101-1.el6.elrepo will be installed--> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================================= Package Arch Version Repository Size
=============================================================================================================================================================Installing: kernel-lt x86_64 4.4.101-1.el6.elrepo elrepo-kernel 38 M
Transaction Summary=============================================================================================================================================================Install 1 Package(s)Total download size: 38 MInstalled size: 174 MDownloading Packages:kernel-lt-4.4.101-1.el6.elrepo.x86_64.rpm | 38 MB 00:29 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum. Installing : kernel-lt-4.4.101-1.el6.elrepo.x86_64 1/1 Verifying : kernel-lt-4.4.101-1.el6.elrepo.x86_64 1/1 Installed: kernel-lt.x86_64 0:4.4.101-1.el6.elrepo
Complete![[email protected] ~]#
[[email protected] ~]# vim /etc/grub.conf
|
|
1
2
3
|
[[email protected] ~]# reboot
[[email protected] ~]# uname -r #查看内核是否升级及重启生效。
4.4.101-1.el6.elrepo.x86_64 |