配置参数:
sysctl -w vm.max_map_count=262144 && grep vm.max_map_count /etc/sysctl.conf
配置映射目录:
mkdir -p /home/docker/elasticsearch/data/nodes chmod -R +rw /home/docker/elasticsearch
启动容器:
docker run --name elasticsearch -d \ -v /home/docker/elasticsearch/data:/usr/share/elasticsearch/data \ -p 9200:9200 \ -p 9300:9300 \ -e "discovery.type=single-node" \ -e ES_JAVA_OPTS="-Xms512m -Xmx512m" \ elasticsearch:7.5.0
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END