es 怎么验证是否安装成功_Elasticsearch 7.x 安装及配置指导
时间: 2024-02-23 14:00:52 浏览: 260
elasticsearch安装与配置
您好!要验证 Elasticsearch 是否安装成功,您可以按照以下步骤进行:
1. 运行 Elasticsearch:在终端中输入 `./bin/elasticsearch` 启动 Elasticsearch。
2. 检查 Elasticsearch 是否在运行:运行命令 `curl -X GET "localhost:9200/"`,如果 Elasticsearch 正在运行,您将看到以下响应:
```
{
"name" : "your-node-name",
"cluster_name" : "your-cluster-name",
"cluster_uuid" : "some-id",
"version" : {
"number" : "7.10.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "1c34507e66d7db1211f66f3513706fdf548736aa",
"build_date" : "2020-12-05T01:00:33.671820Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
```
3. 如果您看到类似于上面的响应,则表示 Elasticsearch 安装成功。
希望能帮到您!
阅读全文