查看系统内核有三种方法:
第一种方法:
[root@localhost nginx]# uname -a
Linux localhost.localdomain 2.6.32-696.30.1.el6.i686 #1 SMP Tue May 22 02:54:00 UTC 2018 i686 i686 i386 GNU/Linux
第二种方法:
uname -r
[root@localhost nginx]# uname -r
2.6.32-696.30.1.el6.i686
第三种方法:
cat /proc/version
[root@localhost nginx]# cat /proc/version
Linux version 2.6.32-696.30.1.el6.i686 (mockbuild@c1bl.rdu2.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Tue May 22 02:54:00 UTC 2018