Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyan authored and huangyan committed Nov 14, 2019
1 parent a6ac927 commit 2156572
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ware-elastic-search/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ sudo docker pull bachue/elasticsearch-ik:6.2.4
sudo docker run --name es6 -p9300:9300 -p 9200:9200 -d bachue/elasticsearch-ik:6.2.4


修改: /etc/sysctl.conf 在文档尾追加

vm.max_map_count=655360
执行命令:

sysctl ‐p




4 changes: 2 additions & 2 deletions ware-elastic-search/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spring:
data:
elasticsearch:
# 默认 elasticsearch
cluster-name: elasticsearch
cluster-name: docker-cluster
# 9200作为Http协议,主要用于外部通讯
# 9300作为Tcp协议,jar之间就是通过tcp协议通讯
cluster-nodes: 192.168.72.130:9300
cluster-nodes: 127.0.0.1:9300

0 comments on commit 2156572

Please sign in to comment.