docker 启动 ElasticSearch

docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms64m -Xmx128m" -v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /mydata/elasticsearch/data:/usr/share/elasticsearch/data -v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins -d elasticsearch:7.17.2

报错使用(给宿主机挂载的文件夹rwx的权限)

chmod -R 777 /mydata/elasticsearch/

你可能感兴趣的:(笔记,linux,docker,elasticsearch)