本文為大家介紹linux服務器怎么查看系統(tǒng)版本(linux 查看服務器版本),下面和小編一起看看詳細內(nèi)容吧。
怎么看麒麟系統(tǒng)版本
1、第一種方法:登錄linux,在終端輸入cat /proc/version。
2、方法二:登錄linux,在終端輸入uname -a 列出linux內(nèi)核版本號。
3、查看linux版本信息:
(1)登錄linux服務器,執(zhí)行l(wèi)sb_release -a命令查看所有版本信息。
(2)登錄linux,執(zhí)行cat /etc/issue(cat后面記得留個空格)。
更多kylin系統(tǒng)版本查看方式請輸入:查看更多內(nèi)容
linux查看服務器型號
; linux中如何查看服務器的型號?讓我們一起想辦法。
1、打開linux系統(tǒng),在linux桌面空白處右擊。
2. 在彈出的下拉選項中,點擊open terminal。
3、輸入dmidecode -t1命令查看下面信息中服務器的名稱和型號。
本文基于thinkpade15品牌和centos7系統(tǒng)編寫。
如何查看linux服務器的版本和配置信息?
查看系統(tǒng)版本:lsb_release -a
查看版本信息:cat /etc/redhat-release
知識拓展:
您還可以獲取服務器信息:主機名
查看系統(tǒng)內(nèi)核uname _a 查看操作系統(tǒng)的版本(我現(xiàn)在只用過redhat,所以只以此為例)
cat /etc/redhat-release
查看網(wǎng)絡配置信息ifconfig
如何查看linux服務器的版本和配置信息
看linux下的配置,沒有windows直觀。您只能一一查看。
一:cpu
[root@srv /]# 更多/proc/cpuinfo | grep'模型
姓名'
[root@srv /]# grep '型號名稱'
/proc/cpu信息
二:內(nèi)存
[root@srv /]# grep memtotal /proc/meminfo
三:查看cpu位數(shù)(32位或64位)
[root@srv /]#getconf long_bit
32
四:查看linux版本
[root@srv /]# more /etc/redhat-release
中央操作系統(tǒng)
第5 版(最終版)
[root@srv /]# more /etc/issue
centos 第5 版(最終版)
內(nèi)核\r 在\m 上
五:查看內(nèi)核版本
[root@srv /]#uname
-r
2.6.18-92.1.18.el5.028stab060.2pae
[root@srv /]# uname -a
linux srv.eddiechen.cn
2.6.18-92.1.18.el5.028stab060.2pae #1 smp 1 月13 日星期二12:31:30 msk
2009 i686 i686 i386 gnu/linux
六:查看時區(qū)
[root@srv /]# date -r
2009 年2 月25 日,星期三
02:20:50 +0000
[root@srv /]# mv /etc/localtime
/etc/localtime.save
[root@srv /]# cp /usr/share/zoneinfo/asia/shanghai
/etc/本地時間
[root@srv /]# date -r
2009 年2 月25 日,星期三
10:24:26 +0800
七:主機名
[root@srv /]#主機名
srv.eddiechen.cn
八:查看selinux的情況
[root@srv /]# sestatus
selinux
狀態(tài):
禁用
九:網(wǎng)絡
知識產(chǎn)權(quán)
[root@srv /]#ifconfig
| grep 'inet addr:' | grep -v '127.0.0.1' |切-d: -f2 | awk'{
p
rint $1}'
207.154.202.216
網(wǎng)關(guān)
[root@srv /]# cat /etc/sysconfig/network
networking=yes
gateway=192.0.2.1
hostname=srv.eddiechen.cn
dns
[root@srv /]# cat /etc/resolv.conf
nameserver
208.74.168.131
nameserver 208.74.168.132
nameserver 4.2.2.1
十:已經(jīng)安裝的軟件包
[root@srv /]# rpm -qa | wc -l
197
[root@srv /]# yum list installed | wc
-l
198
十一:磁盤和分區(qū)
[root@srv /]# df
-h
filesystem?
?
size?
? used?
? avail
use?
?%?
?mounted
on
/dev/simfs?
?10g?
?353m?
?9.7g?
?
4%?
?/
[root@srv /]# du -sh
353m
[root@srv /]# du /etc
-sh
4.6m?
?/etc
如何查看linux操作系統(tǒng)版本
二。查看linux版本:
1) 登錄到服務器執(zhí)行 lsb_release -a ,即可列出所有版本信息,例如:
[root@sor_sys ~]# lsb_release -a
lsb version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
distributor id: redhatenterpriseas
description: red hat enterprise linux as release 4 (nahant update 4)
release: 4
codename: nahantupdate4
[root@sor_sys ~]#
注:這個命令適用于所有的linux,包括redhat、suse、debian等發(fā)行版。
2) 登錄到linux執(zhí)行cat /etc/issue,例如如下:
[root@sor_sys ~]# cat /etc/issue
red hat enterprise linux server release 5.6 (tikanga)
kernel \r on an \m
[root@sor_sys ~]#
3) 登錄到linux執(zhí)行cat /etc/redhat-release ,例如如下:
[root@sor_sys ~]# cat /etc/redhat-release
red hat enterprise linux as release 4 (nahant update 4)
[root@sor_sys ~]#
注:這種方式下可以直接看到具體的版本號,比如 as4 update 1
4)登錄到linux執(zhí)行rpm -q redhat-release ,例如如下:
[root@sor_sys ~]# rpm -q redhat-release
redhat-release-5server-5.6.0.3
[root@sor_sys ~]#
注:這種方式下可看到一個所謂的release號,比如上邊的例子是5
這個release號和實際的版本之間存在一定的對應關(guān)系,如下:
redhat-release-3as-1 - redhat enterprise linux as 3
redhat-release-3as-7.4 - redhat enterprise linux as 3 update 4
redhat-release-4as-2 - redhat enterprise linux as 4
redhat-release-4as-2.4 - redhat enterprise linux as 4 update 1
redhat-release-4as-3 - redhat enterprise linux as 4 update 2
redhat-release-4as-4.1 - redhat enterprise linux as 4 update 3
redhat-release-4as-5.5 - redhat enterprise linux as 4 update 4
另:第3)、4)兩種方法只對redhat linux有效
5) [root@sor_sys ~]# file /bin/bash
/bin/bash: elf 64-bit lsb executable, amd x86-64, version 1 (sysv), for gnu/linux 2.6.9, dynamically linked (uses shared libs), for gnu/linux 2.6.9, stripped
[root@sor_sys ~]#
6) [root@sor_sys ~]# file /bin/cat
/bin/cat: elf 64-bit lsb executable, amd x86-64, version 1 (sysv), for gnu/linux 2.6.9, dynamically linked (uses shared libs), for gnu/linux 2.6.9, stripped
[root@sor_sys ~]#
linux操作系統(tǒng)版本要怎么查看
linux操作系統(tǒng)版本要怎么查看
linux可安裝在各種計算機硬件設備中,比如手機、平板電腦、路由器、視頻游戲控制臺、臺式計算機、大型機和超級計算機。下面是我收集linux操作系統(tǒng)版本,希望大家認真閱讀!
1. 查看內(nèi)核版本命令:
chen@mylinuxserver:~ cat /proc/version
linux version 2.6.5-7.244-smp (geeko@buildhost) (gcc version 3.3.3 (suse linux)) #1 smp mon dec 12 18:32:25 utc 2005
/proc 目錄的'作用?
chen@mylinuxserver:/proc uname -a
linux mylinuxserver 2.6.5-7.244-smp #1 smp mon dec 12 18:32:25 utc 2005 i686 i686 i386 gnu/linux
chen@mylinuxserver:/proc uname -r
2.6.5-7.244-smp
uname命令的作用?
2. 查看linux版本:
1) 登錄到服務器執(zhí)行 lsb_release -a ,即可列出所有版本信息,例如:
chen@mylinuxserver:/proc lsb_release -a
lsb version: core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
distributor id: suse linux
description: suse linux enterprise server 9 (i586)
release: 9
codename: n/a
注:這個命令適用于所有的linux,包括redhat、suse、debian等發(fā)行版。
2) 登錄到linux執(zhí)行cat /etc/issue,例如如下:
chen@mylinuxserver:/proc cat /etc/issue
welcome to suse linux enterprise server 9 (i586) - kernel \r (\l).
3) 登錄到linux執(zhí)行cat /etc/redhat-release ,例如如下:
chen@mylinuxserver:/proc cat /etc/*release*
lsb_version=core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32
cat: /etc/lsb-release.d: 是一個目錄
suse linux enterprise server 9 (i586)
version = 9
patchlevel = 3
;
好了,linux服務器怎么查看系統(tǒng)版本(linux 查看服務器版本)的介紹到這里就結(jié)束了,想知道更多相關(guān)資料可以收藏我們的網(wǎng)站。