Docker安装Elasticsearch 7

图片[1]-Docker安装Elasticsearch 7-JoyCode 编程小战

配置参数:

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
喜欢就支持一下吧
点赞0 分享