1. View Kernel version command:
1) [root@q1test01 ~]# cat/proc/version
Linux version 2.6.9-22.elsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 18:00:54 EDT 2005
2) [root@q1test01 ~]# uname-a
Linux q1test01 2.6.9-22.elsmp #1 SMP Mon Sep 18:00:54 EDT x86_64 x86_64 x86_64 gnu/linux
3) [root@q1test01 ~]# uname-r
2.6.9-22.elsmp
2. There are three main ways to view Linux versions:
1 Log on to the server to perform lsb_release-a, listing all version information, for example:
[root@3.5.5biz-46 ~]# lsb_release-a
LSB version:1.3
Distributor Id:redhatenterpriseas
description:red Hat Enterprise Linux as Release 4 (Nahant Update 1)
Release:4
Codename:nahantupdate1
[Root@3.5.5biz-46 ~]#
This command applies to all Linux, including Redhat, SuSE, Debian and other distributions.
2 log in to the Linux execution cat/etc/redhat-release, for example, as follows :
[root@3.5.5biz-46 ~]# cat/etc/redhat-release
Red Hat Enterprise Linux as Release 4 (Nahant Update 1)
[Root@3.5.5biz-46 ~]#
This way you can see the exact version number, such as AS4 Update 1
3 Log in to the Linux execution Rpm-q redhat-release, for example as follows
[root@3.5.5biz-46 ~]# rpm-q redhat-release
redhat-release-4as-2.4
[Root@3.5.5biz-46 ~]#
In this way, you can see a so-called release number, such as the above example is 2.4
There is a certain correspondence between this release number and the actual version, as follows:
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
Note: the first (2) (3) Two methods are valid only for Redhat Linux
Original Address Http://bbs.eb2000.cn/redirect.php?tid=1928&goto=lastpost
-------------------
From http://blog.csdn.net/zhangren07/archive/2010/07/10/5725002.aspx
View Linux version information: lsb_release-a
View CPU information (model)
# Cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c
8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz
(see there are 8 logical CPUs, also know the CPU model)
# Cat/proc/cpuinfo | grep physical | uniq-c
4 Physical id:0
4 Physical Id:1
(It's actually two 4-core CPUs)
# getconf Long_bit
32
(indicates that the current CPU is running in 32bit mode, but does not mean CPU does not support 64bit)
# Cat/proc/cpuinfo | grep flags | grep ' LM ' | wc-l
8
(The result is greater than 0, which indicates support for 64bit calculation. LM refers to long mode, support LM is 64bit)
See the full details of the CPU, but most of us do not care about it.
# Dmidecode | grep ' Processor information '
Viewing memory information
# Cat/proc/meminfo
Free-mt
# uname-a
Linux euis1 2.6.9-55.elsmp #1 SMP Fri Apr 17:03:35 EDT 2007 i686 i686 i386
(view current operating system kernel information)
# lsb_release-a
Red Hat Enterprise Linux as Release 4 (Nahant Update 5)
(view current operating system release information)
View Machine Model
# Dmidecode | grep ' Product Name '
View network card information
# DMESG | grep-i eth
(1) ifconfig check which network card is connected to the server (ETHX)
(2) Ethtool ethx Check the details of the network card (ETHX for ifconfig check out the number of network cards, as shown above for eth0)
view Apache, JDK, JBoss versions
./apachectl-version
The J-DK version is similar to the one under/usr/alibaba, and which is used in antx.properties.
The JBoss version has a line to start JBoss, a big deal to start, and then stop.
View JVM Key Parameters
Jps-v