ZKX's LAB

怎么查看centos版本 centos查看tomcat版本信息

2020-08-11知识11

CentOS是哪个版本 CentOS版本信息查看技巧 解决方法:有以下命令可以查看:lsb_release-aLSB Version:core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID:CentOSDescription:CentOS release 5.4(Final)Release:5.4Codename:Final这个命令适用于所有的linux,包括Redhat、SuSE、Debian、Centos等发行版。root@MyMail~#unameLinuxroot@MyMail~#uname-r2.6.18-164.el5[root@localhost~]#uname-aLinux localhost.localdomain 2.6.18-194.el5#1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux以下二种方法适用于RedHat,CentOSroot@MyMail~#cat/etc/redhat-releaseCentOS release 5.4(Final)登录到linux执行rpm-q redhat-releaserpm-q redhat-release或CentOSroot@MyMail~#rpm-q centos-releasecentos-release-5-4.el5.centos.1CentOS是哪个版本 CentOS版本信息查看技巧 方法:1)[root@localhost~]#cat/proc/versionLinux version 2.6.18-194.el5(mockbuild@builder10.centos.org)(gcc version4.1.2 20080704(Red Hat 4.1.2-48))#1 SMP Fri Apr 2 14:58:14 EDT 20102)[root@localhost~]#uname-aLinux localhost.localdomain 2.6.18-194.el5#1 SMP Fri Apr 2 14:58:14 EDT2010 x86_64 x86_64 x86_64 GNU/Linux3)[root@localhost~]#uname-r2.6.18-194.el52.查看linux版本:1)列出所有版本信息,[root@localhost~]#lsb_release-aLSB Version:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID:CentOSDescription:CentOS release 5.5(Final)Release:5.5Codename:Final注:这个命令适用于所有的linux,包括RedHat、SUSE、Debian等发行版。2)执行cat/etc/issue,例如如下:[root@localhost~]#cat/etc/issueCentOS release 5.5(Final)Kernel r on an m3)执行cat/etc/redhat-release,例如如下:[root@localhost~]#cat/etc/redhat-releaseCentOS release 5.5(Final)查看系统是64位还是32位:1、getconf 。CentOS是哪个版本 CentOS版本信息查看技巧 [root@moban~]#cat/etc/redhat-releaseCentOS release 6.5(Final)查看Linux系统32位or 64位[root@moban~]#uname –mx86_64/64位系统i386/i686/32位系统查看Linux系统的内核版本[root@moban~]#uname –r2.6.32-504.e16.x86_64查看Linux系统全部信息[root@moban~]#uname-aLinux moban 2.6.32-431.el6.x86_64#1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux建议楼主系统性的学习下Linux基础命令,可以参考linuxprobe网站上第2章新手必须掌握的命令里的第2.4小节。如何查看tomcat版本详细信息,大部分java程序员对tomcat非常熟悉,开发we项目,经常会使用tomcat作为we容器来发布项目,但服务器上安装的tomcat版本往往很多,不同的版本。

#redhat#centos

随机阅读

qrcode
访问手机版