Docker-Run命令部署Elasticsearch
docker run --name elasticsearch \ -p 9200:9200 \ -p 9300:9300 \ -e ES_JAVA_POTS="-Xms256m -Xmx256m" \ -e "discovery.type=single-node" \ -d elasticsearch:8.5.1 docker cp elasticsearch:/usr/share/elasticsearch/logs ~/elasticsearch/ docker cp elasticsearch:/usr/share/elasticsearch/plugins ~/elasticsearch/ docker cp elasticsearch:/usr/share/elasticsearch/config ~/elasticsearch/ vim ~//elasticsearch/config/elasticsearch.yml true => false cluster.name: "docker-cluster" network.host: 0.0.0.0 #-----....