最近要搞mysql到es的数据搬运,并实现查询功能,所以抽时间学一下ES
docker真是解放生产力的好工具!!
基础环境
centos7
切换yum
备份:
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载新的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
更新 yum 缓存
sudo yum makecache fast
centos安装docker
官网
https://docs.docker.com/install/linux/linux-postinstall/#ip-forwarding-problems
安装参考
https://docs.docker.com/install/linux/docker-ce/centos/#prerequisites
http://www.runoob.com/docker/centos-docker-install.html
缺少镜像包
https://opsx.alibaba.com/mirror/search?q=docker&lang=zh-CN
下载安装
rpm -ivh xxx.rpm
配置加速器加速
https://blog.csdn.net/vtopqx/article/details/78958485
拉取镜像
地址:
https://hub.docker.com/_/kibana/
https://hub.docker.com/_/elasticsearch/
docker pull elasticsearch:6.4.1 docker pull kibana:6.4.1
启动镜像
docker network create esnetwork docker run -d --name elasticsearch --net esnetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.4.1 docker run -d --name kibana --net esnetwork -p 5601:5601 kibana:6.4.1