查看常用组件版本方法
> /Mysql/Redis/elasticsearch/Tenginx/rocketmq/ArangoDB/zookeeper/Nacos/
1、Mysql
- #使用SQL语句查询:
- >select version();
- #在命令行查询:
- mysql -V 或 mysql --version
2、Redis
#Redis语句查询
1.登录Redis:
./redis-cli -h 'ip' -p 6379 -a 'Passwd'
2.输入INFO命令查询,如下图
#命令行查询:
redis-server --version
redis-server -v
3、elasticsearch
方法一
#进入es的安装目录
cd elasticsearch/
#找出es的jar就可以知道版本
[root@10-55-193-2 elasticsearch]$ ls lib/ | grep -P 'elasticsearch-\d\.\d\.\d\.jar'
elasticsearch-6.2.2.jar
方法二
#从回传信息里面找,number
curl -XGET localhost:9200
{
"name" : "node-26",
"cluster_name" : "dosm-es",
"cluster_uuid" : "Sr3dRRQySJKJp-yghkSC1g",
"version" : {
"number" : "6.2.2",
"build_hash" : "10b1edd",
"build_date" : "2018-02-16T19:01:30.685723Z",
"build_snapshot" : false,
"lucene_version" : "7.2.1",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
4、Tenginx/Nginx
5、rocketmq
6、ArangoDB
7、zookeeper
8、Nacos