CentOS安装ElasticSearch
cd/opt
wgethttps://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.6.1.tar.gz
tar-zxvfelasticsearch-6.6.1.tar.gz
useraddelasticsearch
chown-Relasticsearch:elasticsearch/opt/elasticsearch-6.6.1
suelasticsearch
/opt/elasticsearch-6.6.1/bin/elasticsearch
vi/opt/elasticsearch-6.6.1/config/elasticsearch.yml
增加network.host:0.0.0.0
增加discovery.zen.ping.unicast.hosts:["0.0.0.0"]
/opt/elasticsearch-6.6.1/bin/elasticsearch
报错
vi/etc/security/limits.conf
添加四行
*softnofile65535
*hardnofile65535
*softnproc65535
*hardnproc65535
重启系统
ulimit-n
vi/etc/sysctl.conf
添加一行
vm.max_map_count=655360
sysctl-p
/opt/elasticsearch-6.6.1/bin/elasticsearch
后台启动
/opt/elasticsearch-6.6.1/bin/elasticsearch-d
相关推荐
另外一部分,则需要先做聚类、分类处理,将聚合出的分类结果存入ES集群的聚类索引中。数据处理层的聚合结果存入ES中的指定索引,同时将每个聚合主题相关的数据存入每个document下面的某个field下。