SpringBoot 项目环境部署操作文档
目 录
1. 基础服务.........................................................................................................................................................1
1.1 服务器资源..........................................................................................................................................1
1.2 yum 准备.............................................................................................................................................1
1.2.1 更新 yum.................................................................................................................................1
1.2.2 安装 yum 工具.......................................................................................................................1
1.2.3 查看 yum 版本........................................................................................................................1
1.3 JAVA 部署...........................................................................................................................................1
1.4 docker 环境及部署..........................................................................................................................2
1.4.1 版本............................................................................................................................................2
1.4.2 部署 ..........................................................................................................................................2
1.4.3 文件夹......................................................................................................................................2
1.4.4 docker 常用命令....................................................................................................................2
1.5 nginx 部署..........................................................................................................................................3
1.5.1 docker 部署 nginx .................................................................................................................3
1.5.2 脚本文件 .................................................................................................................................3
1.5.3 nginx 文件................................................................................................................................3
1.5.4 运行 nginx...............................................................................................................................5
1.5.4 nginx 常用命令.......................................................................................................................5
1.6 注册中心 eureka 部署(非必要) ............................................................................................5
1.6.1 准备 ..........................................................................................................................................5
1.6.2 脚本文件 .................................................................................................................................6
1.6.3 运行 eureka ............................................................................................................................6
1.6.4 eureka 常用命令....................................................................................................................6
1.7 配置中心 Apollo 部署(非必要).............................................................................................6
1.7.1 准备工作 .................................................................................................................................6
1.7.2 创建数据库.............................................................................................................................6
1.7.3 脚本文件 .................................................................................................................................6
1.7.4 docker 拉取 apollo................................................................................................................7
1.7.5 运行 apollo .............................................................................................................................8
1.7.6 使用 Apollo 配置中心 .........................................................................................................8