简体   繁体   English

linux终端如何知道安装的软件版本

[英]How to know installed software version in linux terminal

I installed software(elastic search) in linux so i want to know the version of elastic search.我在 linux 中安装了软件(弹性搜索),所以我想知道弹性搜索的版本。 I try some commands not working.我尝试了一些不起作用的命令。

For Example:- this is Ubuntu command application_name --version例如:- 这是 Ubuntu 命令application_name --version

FYR: https://askubuntu.com/questions/440982/how-to-check-installed-program-version FYR: https://askubuntu.com/questions/440982/how-to-check-installed-program-version

what is the linux command? linux 命令是什么? please anyone help me.请任何人帮助我。 what i did mistake?我做错了什么?

For getting elasticsearch version you need to run: curl -XGET 'http://localhost:9200'要获取 elasticsearch 版本,您需要运行: curl -XGET 'http://localhost:9200'

Output: Output:

{
  "name" : "elasticsearch1",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "MmOqb1d9TjmxlIlADv_Deg",
  "version" : {
     "number" : "7.4.0",
     "build_flavor" : "default",
     "build_type" : "docker",
     "build_hash" : "22e1767283e61a198cb4db791ea66e3f11ab9910",
     "build_date" : "2019-09-27T08:36:48.569419Z",
     "build_snapshot" : false,
     "lucene_version" : "8.2.0",
     "minimum_wire_compatibility_version" : "6.8.0",
     "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
 "tagline" : "You Know, for Search"
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM