This commit is contained in:
veypi
2021-12-22 17:10:35 +08:00
parent 564847851b
commit 65e2409fae
18 changed files with 428 additions and 34 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
```bash
docker pull elasticsearch:7.9.0
docker run -d -p 9200:9200 -e ES_JAVA_POTS="-Xms256m -Xmx256m" -e "discovery.type=single-node" --name es elasticsearch:7.9.0
docker run -d --restart=always -p 127.0.0.1:9200:9200 -e ES_JAVA_POTS="-Xms256m -Xmx256m" -e "discovery.type=single-node" --name es elasticsearch:7.9.0
docker run -p 9800:9800 -d --link es:demo --name eshd containerize/elastichd
docker logs es
@@ -42,4 +42,4 @@ curl http://127.0.0.1:9200/
# 访问 127.0.0.1:9800 如下图所示, 左上角地址改成demo
```
![image-20200827143540543](https://public.veypi.com/img/screenshot/20200827143546.png)
![image-20200827143540543](https://public.veypi.com/img/screenshot/20200827143546.png)