docker安装elasticsearch

docker安装elasticsearch

1、拉取es 镜像

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.7.0

2、运行elasticsearch

docker run -di  --name es01 --restart=always -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" 7ec4f35ab452

3、安装ik分词插件

docker exec -it elastic770 /bin/bash ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.7.0/elasticsearch-analysis-ik-7.7.0.zip

4、其他配置

docker exec -it elastic770 /bin/bash
yum update
yum install vim
vim /config/elasticsearch.yml

5、修改elasticsearch.yml

cluster.name: "elasticsearchSZGHJ"
network.host: 0.0.0.0
node.name: node0
http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"

6、安装可视化管理工具

docker run -p 9800:9800 -d --link es01:hd containerize/elastichd

7、浏览器中查看

在浏览器打开http://localhost:9800

你可能感兴趣的:(elasticsearch,elasticsearch,hadoop)