Elasticsearch安装
版权声明:原创作品,谢绝转载!否则将追究法律责任。 ————— 作者:kirin
Elasticsearch安装
1、安装ElasticSearch
cd /usr/local
wget http://dl.elasticsearch.cn/elasticsearch/elasticsearch-7.6.1-linux-x86_64.tar.gz
tar zxvf elasticsearch-7.6.1-linux-x86_64.tar.gz
2、创建用户elasticsearch
adduser elasticsearch
passwd elasticsearch (yourPWD)
chown -R elasticsearch elasticsearch-7.6.1
3、配置ES
cd /usr/local/elasticsearch-7.6.1/config
#、vi elasticsearch.yml 增加配置:
discovery.type: single-node
network.host: 0.0.0.0
indices.query.bool.max_clause_count: 102400
#、更改Elasticsearch最大内存大小
vi /usr/local/elasticsearch-7.6.1/config/jvm.options
-Xms8g
-Xmx8g
vi /etc/sysctl.conf
增加配置vm.max_map_count=262144
#、执行命令sysctl -p生效
sysctl -p
4、安装ik分词器
cd /usr/local/elasticsearch-7.6.1/bin
./elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.6.1/elasticsearch-analysis-ik-7.6.1.zip
5、 启动es:
cd /usr/local/elasticsearch-7.6.1/bin
su elasticsearch
./elasticsearch -d
本文来自博客园,作者:kirin(麒麟),转载请注明原文链接:https://www.cnblogs.com/kirin365/articles/17841670.html