复制命令去centos下执行即可
yum -y install docker
service docker start
systemctl enable docker.service
sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo curl -L "https://gitee.com/wangtiankong/tools/raw/master/elk/docker-compose.yml" -o ./docker-compose.yml
docker-compose up -d