Docker 安装es和kibana踩坑记录

最近换了新电脑所以各种环境重新搞一遍 , 顺便做个记录,接下来是安装操作步骤:
1.下载Elasticsearch:
Docker pull elasticsearch:7.6.22.下载kibana:
docker pull kibana:7.6.2【Docker 安装es和kibana踩坑记录】备注:下载的时候版本要统一一下 , 不然会导致一些版本问题出现
3.下载好之后进行如下配置:
mkdir -p /mydata/elasticsearch/configmkdir -p /mydata/elasticsearch/dataecho "http.host: 0.0.0.0" >/mydata/elasticsearch/config/elasticsearch.yml/Users/hzp/mydata/elasticsearchecho "http.host: 0.0.0.0" >/Users/hzp/mydata/elasticsearch/config/elasticsearch.ymlchmod -R 777 /mydata/elasticsearch/4.启动Elastic Search:
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e"discovery.type=single-node" -e ES_JAVA_OPTS="-Xms64m -Xmx512m" -v /Users/hzp/mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /Users/hzp/mydata/elasticsearch/data:/usr/share/elasticsearch/data -v/Users/hzp/mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins -d elasticsearch:7.6.2 设置开机启动elasticsearch:


    推荐阅读