怎么查看Linux VPS系统内核和系统版本

发布于 2019-11-19 17:46:36

如题,新购买的VPS怎么查看系统信息呢?

查看更多

关注者
0
被浏览
57
1 个回答
admin
admin 2019-11-19
VPSWD - VPS问答

如何查看Linux VPS系统内核和系统版本查看系统内核版本用命令 uname -a 如果查看发行版CENTOS可以用命令 cat /etc/redhat-release

参考信息

一、查看内核

1、cat /proc/version

[[email protected] ~]# cat /proc/version
Linux version 2.6.18-308.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Fri Jan 27 17:21:15 EST 2012

2、uname -a

[[email protected] ~]# uname -a
Linux localhost.localdomain 2.6.18-308.el5 #1 SMP Fri Jan 27 17:21:15 EST 2012 i686 i686 i386 GNU/Linux

3、uname -r

[[email protected] ~]# uname -r

2.6.18-308.el5

二、查看linux版本

1、lsb_release -a

[[email protected] ~]# lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Release: 5.8
Codename: Tikanga

2、cat /etc/issue

[[email protected] ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Kernel \r on an \m
3、cat /etc/redhat-release
[[email protected] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

三、查看系统位数

1、file /bin/ls
2、lsb_release -a

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览