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

88 lines
2.6 KiB
Markdown

3 years ago
```
git clone https://gitee.com/anji-plus/report.git
cd report
sh build.sh
3 years ago
编译完成放在build文件夹 aj-report-xxxx.zip
3 years ago
3 years ago
unzip aj-report-xxxx.zip
cd aj-report-xxxx
2 years ago
vim conf/bootstrap.yml 修改数据库连接、上传下载地址等信息
3 years ago
sh bin/start.sh
3 years ago
2 years ago
访问http://serverip:9095
admin 123456
3 years ago
```
## 编译环境
3 years ago
3 years ago
请在Linux上先准备好maven、node.js、jdk <br>
如果在Win10上部署还需要下载一个 Git 软件,软件名就是 Git <br>
以下内容需要特别注意的地方会有对应提示。<br>
3 years ago
3 years ago
- [Apache Maven] 3.5 <br>
- [Node.js] v14.16.0 <br>
3 years ago
- [Jdk] 1.8 <br>
2 years ago
## 版本问题
已知以下版本存在兼容性问题,请不要使用
- Node.js V16及以上
- openJdk
- Jdk 1.7及以下/11及以上jdk11部分版本有问题
- Mysql 8.08.0.23/26版本没有问题8.0.21版本存在问题)
3 years ago
3 years ago
## 克隆源码
3 years ago
3 years ago
git clone https://gitee.com/anji-plus/report.git <br>
3 years ago
![img9.png](../picture/quickly/img_9.png) <br>
**注**:不要下载发行版里面的 Source Code.zip <br>
3 years ago
## build
3 years ago
进入report目录启动build.sh <br>
3 years ago
![img_4.png](../picture/quickly/img_4.png) <br>
3 years ago
编译完成后是放在当前目录下的build文件夹中aj-report-xxxx.zip <br>
3 years ago
2 years ago
**注:** 如果Win10编译的话如图用git执行sh build.sh就行了。Linux就直接去report目录下执行sh build.sh就行。 <br>
2 years ago
**特别注意:**
2 years ago
在Win10上用git执行build.sh编译几个启动脚本的文本格式都是Unix在win10上启动需要将start.bat转格式转格式的方法有很多实在搞不定的话可以下载发行版用发行版里面的启动脚本替换掉你编译后的脚本。 <br>
同样的在linux下编译然后在win10启动也需要转格式。<br>
3 years ago
3 years ago
## 修改mysql连接
3 years ago
解压aj-report-xxxx.zip找到bootstrap.yml <br>
3 years ago
![img_1.png](../picture/quickly/img_17.png) <br>
3 years ago
将图中关于mysql的连接配置信息换成你使用的IP <br>
3 years ago
**注**aj_report库是存放底层基础信息的库flyway启动时会自动建立如果你在这里修改了库将会出错 <br>
3 years ago
![bootstrap.png](../picture/quickly/img_2.png) <br>
3 years ago
**注**请确认你的Mysql是否支持远程连接登陆用户是否有DDL权限 <br>
3 years ago
2 years ago
## OSS配置
3 years ago
2 years ago
OSS底层已支持minio、amazonS3、nfs都配置的情况下优先级minio->amazonS3->nfs <br>
2 years ago
![file.png](../picture/quickly/img.png) <br>
3 years ago
## 启动
3 years ago
3 years ago
linux启动 <br>
3 years ago
aj-report-XXX --> bin --> start.sh <br>
3 years ago
sh bin/start.sh <br>
3 years ago
win10启动<br>
aj-report-XXX --> bin --> start.bat <br>
双击start.bat启动 <br>
3 years ago
3 years ago
## 日志位置
3 years ago
3 years ago
日志的位置是report-xxx/logs/aj-report.log <br>
3 years ago
## 访问
3 years ago
3 years ago
http://serverip:9095 <br>
3 years ago
默认密码admin 123456 <br>
3 years ago