linux内核查看

1.linux查看内核的几个命令

[root@mysql shell]# uname -srm
Linux 3.10.0-1062.el7.x86_64 x86_64
[root@mysql shell]# uname -a
Linux mysql 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@mysql shell]# uname -srm
Linux 3.10.0-1062.el7.x86_64 x86_64
[root@mysql shell]# 
[root@mysql shell]# 
[root@mysql shell]# hostnamectl
   Static hostname: mysql
         Icon name: computer-vm
           Chassis: vm
        Machine ID: cf0b58b887754adf8aa1567bdd5eb416
           Boot ID: c3d8a94099274a1694a4d655c93064e8
    Virtualization: vmware
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-1062.el7.x86_64
      Architecture: x86-64

 2.查看版本的几个命令

[root@mysql ~]# cat /etc/redhat-release 
CentOS Linux release 7.7.1908 (Core)

3.下载内核安装包

https://www.kernel.org/

 

 

 

 

 

 

 

 4.上传并且解压

 

 5.查看内核

[root@mysql linux-3.14.68]# yum info kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : kernel
Arch        : x86_64
Version     : 3.10.0
Release     : 1062.el7
Size        : 64 M
Repo        : installed
From repo   : anaconda
Summary     : The Linux kernel
URL         : http://www.kernel.org/
License     : GPLv2
Description : The kernel package contains the Linux kernel (vmlinuz), the core of any
            : Linux operating system.  The kernel handles the basic functions
            : of the operating system: memory allocation, process allocation, device
            : input and output, etc.

 

posted @ 2021-12-19 11:13  中仕  阅读(22)  评论(0)    收藏  举报