Linux:centos核心升級

來源:互聯網
上載者:User

標籤:index   .gz   enme   this   php   sda   vim   com   version   

centos核心升級

 

 

centos升級2.6核心到3.10在yum的ELRepo源中,有 m ain l ine(3.13.1)、 l ong- t erm(3.10.28)這2個核心版本,long-time為長期支援。

查看看當前核心版本

uname -r

 

 

安裝elrepo(http://elrepo.org/tiki/tiki-index.php)

  • 匯入public key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  •  安裝ELRepo到CentOS-6.5中
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

 

安裝long-time版本核心(http://elrepo.org/linux/kernel/el6/i386/RPMS/)

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

 

 

編輯grub.conf

vim /etc/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda3
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0 #將1修改為0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.10.105-1.el6.elrepo.i686)
        root (hd0,0)
        kernel /vmlinuz-3.10.105-1.el6.elrepo.i686 ro root=UUID=a8b6e96e-a14e-4907-9c36-e608dc2fe13a rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
        initrd /initramfs-3.10.105-1.el6.elrepo.i686.img
title CentOS 6 (2.6.32-642.el6.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-642.el6.i686 ro root=UUID=a8b6e96e-a14e-4907-9c36-e608dc2fe13a rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
        initrd /initramfs-2.6.32-642.el6.i686.img


 

 

重啟,查看核心

 

Linux:centos核心升級

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.