You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tanghe-report/doc/docs/guide/quicklySource.md

78 lines
2.3 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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