Docker安装Elasticsearch 7

配置参数:

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

最后编辑于:2019/12/9作者: 编程小战

我不入地狱,谁入地狱?

评论已关闭