centos7 docker安装elasticsearch
时间: 2023-09-08 17:08:42 浏览: 130
要在CentOS 7上通过Docker安装Elasticsearch,可以按照以下步骤进行操作:
1. 拉取Elasticsearch镜像。可以使用以下命令拉取指定版本的镜像:
```
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.13.0
```
2. 运行容器启动Elasticsearch。使用以下命令运行容器,请确保替换掉命令中的`b1179d41a7b4`为实际的镜像ID:
```
docker run -d --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" b1179d41a7b4
```
这样,你就成功在CentOS 7上通过Docker安装了Elasticsearch。可以通过访问`http://localhost:9200`来验证Elasticsearch是否正常运行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Docker安装ElasticSearch (Centos7机器环境)](https://blog.csdn.net/weixin_41827162/article/details/118436153)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [centos7:docker安装Elasticsearch](https://blog.csdn.net/hzblucky1314/article/details/121419857)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文