linux版本升级评估,【Linux】查看、升级系统、kernel版本

1.An OS may havemultiple kernels with different versions installed. Find out which version youare using:

root@symantec-virtual-machine:~# uname -r

3.8.0-22-generic

2.Find out whichOS you are using:

root@symantec-virtual-machine:~# cat /etc/issue

Ubuntu 13.04 \n \l

Or

root@symantec-virtual-machine:~# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 13.04

Release:        13.04

Codename:       raring

3.Find out 32 or 64bit OS

root@symantec-virtual-machine:~#arch

x86_64

4.Sometimes you needto select the correct kernel version every time system boot. To avoid thiseffort, you can modify/boot/grub/menu.lst(RedHat,Suse, CentOS, Oracle) or/boot/grub/grub.cfg(Debian,Ubuntu).

Findset default=in/boot/grub/grub.cfg,changethe corresponding number between quotes to the one you want. For example,set default=”1”for the second ‘menuentry’kernel. (the first‘menuentry’is 0, and so on). Please note that somemenuentryare nested as a sub-menuentry, so the order may not correspondto number. Editing grub.cfg may be needed.

Finddefault=in/boot/grub/menu.lst,changethe corresponding number to the one you want. For example,default=1 for the second ‘title’ kernel. (the first ‘title’ is 0,and so on)

When you edit these two files, make a snapshot FIRST.

5.Some terms: ‘i686’,’i386’ or ‘i586’ means 32 bit, ‘x86_64’ means 64 bit.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值