Sign inSign up

truthhun/elasticsearch

By truthhun

•Updated over 2 years ago

安装了IK中文分词(https://github.com/infinilabs/analysis-ik)的elasticsearch

Image
1

1.3K

truthhun/elasticsearch repository overview

安装了IK中文分词(https://github.com/infinilabs/analysis-ik⁠) 的elasticsearch


⁠ES6 安装参考

⁠Linux/Unix
sudo docker run -d -p 127.0.0.1:9300:9300 -p 127.0.0.1:9200:9200 --restart always -v ~/es/data:/usr/share/elasticsearch/data -v ~/es/config:/usr/share/elasticsearch/config --name es6 truthhun/elasticsearch:6.2.4.ik

⁠可能出现的报错解决

通过上述命令,如果没能正确启动 ElasticSearch,如果报如下错误:

[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

则解决办法,参考这里:https://blog.csdn.net/jiankunking/article/details/65448030⁠

简单概括如下:

sudo vi /etc/sysctl.conf

文件末尾添加如下配置(即多加一个0)并保存:

vm.max_map_count=655300

并执行命令:

sudo sysctl -p

重启 ElasticSearch

sudo docker restart xxx

Tag summary

Content type

Image

Digest

sha256:4284137bd…

Size

710.5 MB

Last updated

over 2 years ago

docker pull truthhun/elasticsearch:8.11.0.ik