【Linux】查看系统软件版本

今天用到的一个内容,查看用到的几个系统软件的版本,记录下

操作系统Linux(CentOS):

操作系统版本和ip地址

[root@zy ~]# cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core) 
[root@zy ~]# ifconfig
eno1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 4c:ed:fb:c6:AA:BB  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16  memory 0x93200000-93220000  

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.20  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::7066:1c7d:1eac:9719  prefixlen 64  scopeid 0x20<link>
        ether e8:4e:06:69:aa:bb  txqueuelen 1000  (Ethernet)
        RX packets 79036885  bytes 11290713051 (10.5 GiB)
        RX errors 0  dropped 12078  overruns 0  frame 0
        TX packets 68749960  bytes 12430404259 (11.5 GiB)
        TX errors 197  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 334063131  bytes 101097196074 (94.1 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 334063131  bytes 101097196074 (94.1 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@zy ~]

consul

consul目录下执行

./consul  version
[nrms@zy consul]$ ./consul  version
Consul v1.4.2
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

Elasticsearch

“number” : “6.7.1”,

curl -XGET 192.168.1.20:9200
[nrms@zy consul]$ curl -XGET 192.168.1.20:9200
{
  "name" : "nrms-es-node01",
  "cluster_name" : "nrms-es-cluster",
  "cluster_uuid" : "JkMqj9K1QNWSeO0_DWzHNg",
  "version" : {
    "number" : "6.7.1",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "2f32220",
    "build_date" : "2019-04-02T15:59:27.961366Z",
    "build_snapshot" : false,
    "lucene_version" : "7.7.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
[nrms@zy consul]$

kafka

kafka没有提供version命令,不确定是否有方便的方法,但你可以进入kafka/libs文件夹。你应该看到像kafka_2.10-0.8.2-beta.jar这样的文件,其中2.10是Scala版本,0.8.2-beta是Kafka版本。

[nrms@zy kafka_2.11-2.1.1]$  find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
kafka_2.11-2.1.1-sources.jar.asc

zookeeper

Zookeeper version: 3.4.13

echo stat|nc localhost 2181
[nrms@zy root]$ echo stat|nc localhost 2181
Zookeeper version: 3.4.13-2d71af4dbe22557fda74f9a9b4309b15a7487f03, built on 06/29/2018 00:39 GMT
Clients:
 /0:0:0:0:0:0:0:1:48158[0](queued=0,recved=1,sent=0)
 /192.168.1.20:51322[1](queued=0,recved=103807,sent=103807)
 /192.168.1.229:40413[1](queued=0,recved=76828,sent=76828)
 /192.168.1.20:55506[1](queued=0,recved=172922,sent=172923)

Latency min/avg/max: 0/0/41
Received: 383119
Sent: 383119
Connections: 4
Outstanding: 0
Zxid: 0x1af
Mode: standalone
Node count: 237
[nrms@zy root]$ 

caddy

./caddy version
[nrms@zy caddy2]$ ./caddy version
v2.2.1 h1:Q62GWHMtzxxxxtyRU+KPOpw6fNfeCD3SkwH7SfT1Tgt2c=
[nrms@zy caddy2]$ 

Redis

./redis-server --version
[nrms@zy src]$ ./redis-server --version
Redis server v=5.0.2 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=43cf4c8499f3b67b
[nrms@zy src]$ 

minio

./minio --version
[nrms@zy minio]$ ./minio --version
minio version RELEASE.2020-10-18T21-54-12Z
[nrms@zy minio]$

WebLogic

java -cp weblogic.jar weblogic.version
[root@localhost weblogic]# cd wlserver_10.3/server/lib
[root@localhost lib]# java -cp weblogic.jar weblogic.version

WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 

Use 'weblogic.version -verbose' to get subsystem information

Use 'weblogic.utils.Versions' to get version information for all modules
[root@localhost lib]# 

tomcat

./bin/version.sh
[root@localhost apache-tomcat-7.0.37]# ./bin/version.sh
Using CATALINA_BASE:   /home/yyq/apache-tomcat-7.0.37
Using CATALINA_HOME:   /home/yyq/apache-tomcat-7.0.37
Using CATALINA_TMPDIR: /home/yyq/apache-tomcat-7.0.37/temp
Using JRE_HOME:        /home/software/jdk1.8.0_271
Using CLASSPATH:       /home/oslgis/apache-tomcat-7.0.37/bin/bootstrap.jar:/home/oslgis/apache-tomcat-7.0.37/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.37
Server built:   Feb 12 2013 10:44:14
Server number:  7.0.37.0
OS Name:        Linux
OS Version:     3.10.0-957.el7.x86_64
Architecture:   amd64
JVM Version:    1.8.0_271-b09
JVM Vendor:     Oracle Corporation
[root@localhost apache-tomcat-7.0.37]# 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

实施工程师木易

感谢支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值