|
|
|
@@ -67,5 +67,33 @@ com.xueyi |
|
|
|
```shell |
|
|
|
git pull http://git.lecooai.com/develop/digimeta-MultiSaas.git |
|
|
|
``` |
|
|
|
### 编译源代码 |
|
|
|
```shell |
|
|
|
//根模块上执行 |
|
|
|
mvn package |
|
|
|
``` |
|
|
|
### Docker部署 |
|
|
|
|
|
|
|
1. 检查docker-compose.yml配置,修改对应的信息,主要是数据库的密码设置 |
|
|
|
|
|
|
|
2. 进入./docker目录,修改nacos/conf/application.properties文件,修改对应nacos数据源: |
|
|
|
```shell |
|
|
|
db.url.0=jdbc:mysql://172.17.0.1:3306/xy-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC |
|
|
|
db.user=root |
|
|
|
db.password=Digimeta@123 |
|
|
|
``` |
|
|
|
3. 运行base |
|
|
|
```shell |
|
|
|
sh ./deploy.sh base |
|
|
|
``` |
|
|
|
确保mysql能远程访问,不然nacos启动会报错 |
|
|
|
```sql |
|
|
|
#进入容器里执行,登录mysql |
|
|
|
查看:select host,user,plugin from user; |
|
|
|
删除多余的行:delete from user where user ='root' and host='%'; |
|
|
|
设置所有host可以访问:update user set host='%' where user ='root'; |
|
|
|
修改密码:ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; |
|
|
|
刷一下,使之生效:FLUSH PRIVILEGES; |
|
|
|
退出:exit |
|
|
|
``` |
|
|
|
|