Skip to content

Commit

Permalink
Merge pull request #139 from YoungYo/master skip ci
Browse files Browse the repository at this point in the history
完善项目部署文档
  • Loading branch information
linhaojun857 authored Aug 20, 2023
2 parents 5f21243 + ddee07d commit 6fcf811
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions 项目部署文档.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,23 @@ docker run --name mysql --restart=always -p 3306:3306 -v /mnt/aurora/mysql/log:/
## 4.安装redis

```shell
docker pull redis //下载Redis镜像
docker run --name redis --restart=always -p 6379:6379 -d redis --requirepass "密码" //启动Redis
docker pull redis # 下载Redis镜像
docker run --name redis --restart=always -p 6379:6379 -d redis --requirepass "密码" # 启动Redis
```

可能出现的问题:

Redis 容器一直重启,并且使用`docker logs 容器ID`查看容器日志发现有如下报错:

```
Fatal: Can't initialize Background Jobs. Error message: Operation not permitted
```
有可能是因为当前服务器环境与Redis最新版本不兼容,此时可以换成7.0.10版本,命令如下:
```shell
docker pull redis:7.0.10 # 下载Redis镜像
docker run --name redis --restart=always -p 6379:6379 -d redis:7.0.10 --requirepass "密码" # 启动Redis,执行这条命令之前记得先删除旧的Redis容器,否则会造成容器名称冲突
```

## 5.安装rabbitmq
Expand Down Expand Up @@ -354,6 +369,15 @@ docker run --name aurora-springboot-0.0.1.jar -d -p 8080:8080 aurora-springboot

7. 将打包好的后台代码重命名为admin, 并传输到服务器的/usr/local/aurora-vue下面

后台管理系统的初始用户名密码分别是:

```
用户名:admin@163.com
密码:123456
```
==第一次登录后一定要修改密码!!!==
## 11.安装并启动nginx
### 方式1: http
Expand Down

0 comments on commit 6fcf811

Please sign in to comment.