参考:https://www.elastic.co/guide/en/elasticsearch/reference/7.9/docker.html
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.9.2
docker exec -it 82f59ca44933 /bin/bash
vi config/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "*"
docker restart 82f59ca44933
elasticsearch-head前端界面显示
D:Softwareselasticsearch-head> npm.cmd install -g grunt-cli
D:Softwareselasticsearch-head> npm.cmd install
D:Softwareselasticsearch-head> grunt.cmd server
kibana&sense(dev tools)
docker pull kibana:7.9.2
docker run --name kibana --link elasticsearch:elasticsearch -p 5601:5601 kibana:7.9.2