我有服务器与centos 6.8和许多wordpress网站运行。
我想在这台服务器上开始使用Docker。
但Docker要求内核> 3.10
目前我的内核是:
Linux 2.6.32-642.3.1.el6.x86_64 #1 SMP Tue Jul 12 18:30:56 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
以下是我的回购清单:
[root@DevServer ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* ius: mirrors.ircam.fr
* remi: rpms.remirepo.net
* remi-php56: rpms.remirepo.net
* remi-safe: rpms.remirepo.net
* updates: centos.excellmedia.net
* webtatic: uk.repo.webtatic.com
repo id repo name status
base CentOS-6 - Base 6,713
epel Extra Packages for Enterprise Linux 6 - x86_64 12,504
extras CentOS-6 - Extras 35
ius IUS Community Packages for Enterprise Linux 6 - x86_64 725
mysql-connectors-community MySQL Connectors Community 66
mysql-tools-community MySQL Tools Community 68
mysql56-community MySQL 5.6 Community Server 474
remi Remi's RPM repository for Enterprise Linux 6 - x86_64 5,521
remi-php56 Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - x86_64 456
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 2,730
updates CentOS-6 - Updates 251
webtatic Webtatic Repository EL6 - x86_64 886
repolist: 30,429
[root@DevServer ~]#
我检查了内核的可用更新,如下所示
[root@DevServer ~]# sudo yum --showduplicates list 'kernel*'
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* ius: mirrors.ircam.fr
* remi: rpms.remirepo.net
* remi-php56: rpms.remirepo.net
* remi-safe: rpms.remirepo.net
* updates: centos.excellmedia.net
* webtatic: uk.repo.webtatic.com
Installed Packages
kernel.x86_64 2.6.32-504.el6 @anaconda-CentOS-201410241409.x86_64/6.6
kernel.x86_64 2.6.32-642.3.1.el6 @updates
kernel-devel.x86_64 2.6.32-696.1.1.el6 @updates
kernel-firmware.noarch 2.6.32-642.3.1.el6 @updates
kernel-headers.x86_64 2.6.32-642.3.1.el6 @updates
Available Packages
kernel.x86_64 2.6.32-754.el6 base
kernel.x86_64 2.6.32-754.2.1.el6 updates
kernel.x86_64 2.6.32-754.3.5.el6 updates
kernel.x86_64 2.6.32-754.6.3.el6 updates
kernel.x86_64 2.6.32-754.9.1.el6 updates
kernel-abi-whitelists.noarch 2.6.32-754.el6 base
kernel-abi-whitelists.noarch 2.6.32-754.2.1.el6 updates
kernel-abi-whitelists.noarch 2.6.32-754.3.5.el6 updates
kernel-abi-whitelists.noarch 2.6.32-754.6.3.el6 updates
kernel-abi-whitelists.noarch 2.6.32-754.9.1.el6 updates
kernel-debug.x86_64 2.6.32-754.el6 base
kernel-debug.x86_64 2.6.32-754.2.1.el6 updates
kernel-debug.x86_64 2.6.32-754.3.5.el6 updates
kernel-debug.x86_64 2.6.32-754.6.3.el6 updates
kernel-debug.x86_64 2.6.32-754.9.1.el6 updates
kernel-debug-devel.i686 2.6.32-754.el6 base
kernel-debug-devel.x86_64 2.6.32-754.el6 base
kernel-debug-devel.i686 2.6.32-754.2.1.el6 updates
kernel-debug-devel.x86_64 2.6.32-754.2.1.el6 updates
kernel-debug-devel.i686 2.6.32-754.3.5.el6 updates
kernel-debug-devel.x86_64 2.6.32-754.3.5.el6 updates
kernel-debug-devel.i686 2.6.32-754.6.3.el6 updates
kernel-debug-devel.x86_64 2.6.32-754.6.3.el6 updates
kernel-debug-devel.i686 2.6.32-754.9.1.el6 updates
kernel-debug-devel.x86_64 2.6.32-754.9.1.el6 updates
kernel-devel.x86_64 2.6.32-754.el6 base
kernel-devel.x86_64 2.6.32-754.2.1.el6 updates
kernel-devel.x86_64 2.6.32-754.3.5.el6 updates
kernel-devel.x86_64 2.6.32-754.6.3.el6 updates
kernel-devel.x86_64 2.6.32-754.9.1.el6 updates
kernel-doc.noarch 2.6.32-754.el6 base
kernel-doc.noarch 2.6.32-754.2.1.el6 updates
kernel-doc.noarch 2.6.32-754.3.5.el6 updates
kernel-doc.noarch 2.6.32-754.6.3.el6 updates
kernel-doc.noarch 2.6.32-754.9.1.el6 updates
kernel-firmware.noarch 2.6.32-754.el6 base
kernel-firmware.noarch 2.6.32-754.2.1.el6 updates
kernel-firmware.noarch 2.6.32-754.3.5.el6 updates
kernel-firmware.noarch 2.6.32-754.6.3.el6 updates
kernel-firmware.noarch 2.6.32-754.9.1.el6 updates
kernel-headers.x86_64 2.6.32-754.el6 base
kernel-headers.x86_64 2.6.32-754.2.1.el6 updates
kernel-headers.x86_64 2.6.32-754.3.5.el6 updates
kernel-headers.x86_64 2.6.32-754.6.3.el6 updates
kernel-headers.x86_64 2.6.32-754.9.1.el6 updates
[root@DevServer ~]#
可用的更新是kernel.x86_64.2.6.32-754.9.1.el6,这对于Docker来说是不够的。
我在Net上发现了一些关于将内核升级到3.10的文章。
但我也要确保我目前运行的wordpress网站不存在任何问题,这些网站依赖于apache,mysql等。
那么如何安全地升级内核并同时发挥安全性。这是以防万一我有一些问题我应该回来。