谷粒商城微服务分布式高级篇:linux下使用docker安装ElasticSearch
[ ~]# docker pull elasticsearch:7.8.0 安装elasticsearch:7.8.0[ ~]# docker pull kibana:7.8.0 安装安装elasticsearch:7.8.0版本对应的可视化工具创建文档[ ~]# mkdir -p /mydata/elasticsearch/data [ ~]# mkdir -p /mydata/elasticsearch/config进入mydata/elasticsearch/config下,这里的host后面必须要有空格,因为是yml文件,否则无法识别[ config]# echo "http.host: 0.0.0.0">>/mydata/elasticsearch/config/elasticsearch.yml进行挂载[ config]# docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \-e "discovery.type=single-node" \-e ES_JAVA_OPTS="-Xms64m -Xmx128m" \-v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \-v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \-v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \-d elasticsearch:7.8.0进入elasticsearch目录,开放/mydata/elasticsearch/权限[ elasticsearch]# chmod -R 777 /mydata/elasticsearch/查看id号后启动:[ elasticsearch]# docker ps -a
[ elasticsearch]# docker start e19成功界面:
相关推荐
newbornzhao 2020-09-14
做对一件事很重要 2020-09-07
renjinlong 2020-09-03
明瞳 2020-08-19
李玉志 2020-08-19
mengyue 2020-08-07
molong0 2020-08-06
AFei00 2020-08-03
molong0 2020-08-03
wenwentana 2020-08-03
YYDU 2020-08-03
另外一部分,则需要先做聚类、分类处理,将聚合出的分类结果存入ES集群的聚类索引中。数据处理层的聚合结果存入ES中的指定索引,同时将每个聚合主题相关的数据存入每个document下面的某个field下。
sifeimeng 2020-08-03
心丨悦 2020-08-03
liangwenrong 2020-07-31
sifeimeng 2020-08-01
mengyue 2020-07-30
tigercn 2020-07-29
IceStreamLab 2020-07-29