|
|
@ -2,11 +2,11 @@
|
|
|
|
git clone https://gitee.com/anji-plus/report.git
|
|
|
|
git clone https://gitee.com/anji-plus/report.git
|
|
|
|
cd report
|
|
|
|
cd report
|
|
|
|
sh build.sh
|
|
|
|
sh build.sh
|
|
|
|
编译完成放在build文件夹 report-core-xxxx.zip
|
|
|
|
编译完成放在build文件夹 aj-report-xxxx.zip
|
|
|
|
|
|
|
|
|
|
|
|
unzip report-core-xxxx.zip
|
|
|
|
unzip aj-report-xxxx.zip
|
|
|
|
cd report-core-xxxx
|
|
|
|
cd aj-report-xxxx
|
|
|
|
vim conf/bootstrap-dev.yml 数据库连接、上传文件的路径以及地址修改
|
|
|
|
vim conf/bootstrap-dev.yml 修改数据库连接、上传文件的路径以及地址
|
|
|
|
sh bin/start.sh
|
|
|
|
sh bin/start.sh
|
|
|
|
|
|
|
|
|
|
|
|
访问
|
|
|
|
访问
|
|
|
@ -14,48 +14,61 @@ http://serverip:9095
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 编译环境
|
|
|
|
## 编译环境
|
|
|
|
|
|
|
|
|
|
|
|
请在Linux上先准备好maven、node.js、jdk
|
|
|
|
请在Linux上先准备好maven、node.js、jdk
|
|
|
|
- [Apache Maven] 3.5 +<br>
|
|
|
|
|
|
|
|
- [Node.js] v14.16.0+<br>
|
|
|
|
- [Apache Maven] 3.5 + <br>
|
|
|
|
|
|
|
|
- [Node.js] v14.16.0 + <br>
|
|
|
|
- [Jdk] 1.8 <br>
|
|
|
|
- [Jdk] 1.8 <br>
|
|
|
|
**注**:已知**Jdk11**存在兼容性问题
|
|
|
|
**注**:已知**Jdk11**存在兼容性问题,请不要使用openJdk,环境问题请看**常见问题**大类 <br>
|
|
|
|
|
|
|
|
|
|
|
|
## 克隆源码
|
|
|
|
## 克隆源码
|
|
|
|
|
|
|
|
|
|
|
|
git clone https://gitee.com/anji-plus/report.git <br>
|
|
|
|
git clone https://gitee.com/anji-plus/report.git <br>
|
|
|
|
![img9.png](../picture/quickly/img_9.png)
|
|
|
|
![img9.png](../picture/quickly/img_9.png) <br>
|
|
|
|
**注**:不要下载发行版里面的 Source Code.zip
|
|
|
|
**注**:不要下载发行版里面的 Source Code.zip <br>
|
|
|
|
|
|
|
|
|
|
|
|
## build
|
|
|
|
## build
|
|
|
|
进入report目录,启动build.sh
|
|
|
|
|
|
|
|
|
|
|
|
进入report目录,启动build.sh <br>
|
|
|
|
![img_4.png](../picture/quickly/img_4.png) <br>
|
|
|
|
![img_4.png](../picture/quickly/img_4.png) <br>
|
|
|
|
编译完成后是放在当前目录下的build文件夹中:report-core-xxxx.zip <br>
|
|
|
|
编译完成后是放在当前目录下的build文件夹中:aj-report-xxxx.zip <br>
|
|
|
|
|
|
|
|
|
|
|
|
## 修改mysql连接
|
|
|
|
## 修改mysql连接
|
|
|
|
解压report-core-xxxx.zip,找到bootstrap-dev.yml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
解压aj-report-xxxx.zip,找到bootstrap-dev.yml <br>
|
|
|
|
![img_1.png](../picture/quickly/img_1.png) <br>
|
|
|
|
![img_1.png](../picture/quickly/img_1.png) <br>
|
|
|
|
|
|
|
|
|
|
|
|
将图中关于mysql的连接配置信息换成你使用的IP <br>
|
|
|
|
将图中关于mysql的连接配置信息换成你使用的IP <br>
|
|
|
|
**注**:aj_report库是存放底层基础信息的库,flyway启动时会自动建立,如果你在这里修改了库,将会出错<br>
|
|
|
|
**注**:aj_report库是存放底层基础信息的库,flyway启动时会自动建立,如果你在这里修改了库,将会出错 <br>
|
|
|
|
|
|
|
|
|
|
|
|
![bootstrap.png](../picture/quickly/img_2.png) <br>
|
|
|
|
![bootstrap.png](../picture/quickly/img_2.png) <br>
|
|
|
|
**注**:请确认你的Mysql是否支持远程连接,登陆用户是否有DDL权限
|
|
|
|
**注**:请确认你的Mysql是否支持远程连接,登陆用户是否有DDL权限 <br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 上传功能
|
|
|
|
|
|
|
|
|
|
|
|
## 修改路径
|
|
|
|
使用上传功能,必须修改此内容 <br>
|
|
|
|
使用上传功能,必须修改此内容
|
|
|
|
|
|
|
|
![file.png](../picture/quickly/img_5.png)
|
|
|
|
![file.png](../picture/quickly/img_5.png)
|
|
|
|
|
|
|
|
|
|
|
|
## 启动
|
|
|
|
## 启动
|
|
|
|
report-core-XXX --> bin --> start.sh <br>
|
|
|
|
|
|
|
|
|
|
|
|
aj-report-XXX --> bin --> start.sh <br>
|
|
|
|
sh bin/start.sh <br>
|
|
|
|
sh bin/start.sh <br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 日志位置
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
看到控制台提示“The AJ-Report started!”,说明report正在启动,可以看看日志以确定程序启动到哪里了。<br>
|
|
|
|
|
|
|
|
日志的位置是:report-xxx/logs/aj-report.log <br>
|
|
|
|
|
|
|
|
|
|
|
|
## 访问
|
|
|
|
## 访问
|
|
|
|
|
|
|
|
|
|
|
|
http://serverip:9095 <br>
|
|
|
|
http://serverip:9095 <br>
|
|
|
|
默认密码:admin 123456
|
|
|
|
默认密码:admin 123456 <br>
|
|
|
|
|
|
|
|
|
|
|
|
## 重置mysql连接
|
|
|
|
## 重置mysql连接
|
|
|
|
登陆进来后请重置mysql连接 <br>
|
|
|
|
|
|
|
|
|
|
|
|
登陆进来后请修改mysql数据源 <br>
|
|
|
|
数据源 --> mysql数据源 --> 编辑 --> 修改用户名密码 <br>
|
|
|
|
数据源 --> mysql数据源 --> 编辑 --> 修改用户名密码 <br>
|
|
|
|
![img](../picture/quickly/img_14.png) <br>
|
|
|
|
![img](../picture/quickly/img_14.png) <br>
|
|
|
|
![img_6.png](../picture/quickly/img_6.png)
|
|
|
|
![img_6.png](../picture/quickly/img_6.png) <br>
|
|
|
|
|
|
|
|
|
|
|
|