docker 安装 elasticsearch7.4.2、Kibana
一、安装
存储和检索数据
docker pull elasticsearch:7.4.2
可视化检索数据
docker pull kibana:7.4.2
二、创建文件
mkdir -p /dockerData/elasticsearch/config
mkdir -p /dockerData/elasticsearch/data
echo "http.host: 0.0.0.0" >> /dockerData/elasticsearch/config/elasticsearch.yml
给你文件添加权限
chmod -R 777 /dockerData/elasticsearch/
三、启动
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \ -e "discovery.type=single-node" \ -e ES_JAVA_OPTS="-Xms64m -Xmx512m" \ -v /dockerData/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \ -v /dockerData/elasticsearch/data:/usr/share/elasticsearch/data \ -v /dockerData/elasticsearch/plugins:/usr/share/elasticsearch/plugins \ -d elasticsearch:7.4.2