企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
1:centos系统服务器 2:域名 3:将域名解析到hosts文件 4:centos(centos7.9)部署docker、docker-compose服务(比如实例中给的docker-compose.yml的版本version为3.7,那么需要找到3.7docker-compose 对应的docker是哪个版本) ![](https://img.kancloud.cn/4e/60/4e604266d233f9ed157dc11b346adaf3_942x464.png) 4.1:安装docker     命令1:sudo yum install -y yum-utils device-mapper-persistent-data lvm2     命令2:sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo     命令3:sudo yum install -y docker-ce-18.06.0.ce-3.el7.x86_64     命令4:sudo systemctl start docker     命令5:sudo systemctl enable docker     命令6:sudo docker version(查看安装号的docker版本) ![](https://img.kancloud.cn/0d/fc/0dfc3814829e053bcec04ca9d92541b1_705x390.png) 4.2:安装docker-compose     命令1:sudo curl -L "https://github.com/docker/compose/releases/download/1.27.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose     命令2:docker-compose version ![](https://img.kancloud.cn/b1/1b/b11b764bf6a0840b8d0ef227b4fa3340_1920x1030.png)