-
下载
github地址:https://github.com/edp963/davinciwget https://github.com/edp963/davinci/releases/download/v0.3.0-beta.4/davinci-assembly_3.0.1-0.3.0-SNAPSHOT-dist-beta.4.zip
-
解压安装包
[root@cdh01 soft]# unzip davinci-assembly_3.0.1-0.3.0-SNAPSHOT-dist-beta.4.zip -d /root/soft/davinci [root@cdh01 davinci]# ll 总用量 24 drwxr-xr-x. 2 root root 212 4月 28 13:23 bin drwxr-xr-x. 2 root root 85 4月 28 14:16 config drwxr-xr-x. 2 root root 4096 11月 27 19:40 davinci-ui drwxr-xr-x. 2 root root 8192 11月 27 19:42 lib drwxr-xr-x. 2 root root 36 4月 28 13:37 logs -rw-r--r--. 1 root root 7703 11月 27 10:50 README.md drwxr-xr-x. 2 root root 6 11月 27 17:31 userfiles
-
环境准备
- java 1.8以上
- mysql5.5以上
- phantomjs 见(https://blog.csdn.net/weixin_43215250/article/details/89635561)
-
配置环境变量
[root@cdh01 soft]# cat /etc/profile.d/davinci.sh export DAVINCI3_HOME=/root/soft/davinci [root@cdh01 soft]# source /etc/profile
-
初始化数据库
- 修改 bin 目录下 initdb.sh
mysql -P 3306 -h localhost -u root -p123456 davinci0.3 < $DAVINCI3_HOME/bin/davinci.sql
- 运行初始化数据库脚本
注意:Davinci0.3 系统数据库中包含存储过程,在创建数据库时请务必赋予执行权限sh bin/initdb.sh
- 修改 bin 目录下 initdb.sh
-
初始化配置
[root@cdh01 davinci]# cd config [root@cdh01 config]# mv application.yml.example application.yml [root@cdh01 config]# vim application.yml
server 配置:
server: protocol: http address: 192.168.154.101 port: 8080 # Userd for mail and download services, can be empty, careful configuration # By default, 'server.address' and 'server.port' is used as the string value. # access: # address: # port:
server.access.address和server.access.port表示真实访问地址和端口,默认不开启,其值默认为server.address和server.port。
由于davinci0.3.0_beta3使用邮箱注册新的账号,所以server的address不能使用127.0.0.1,在邮箱中生成的验证链接会使用这个address地址。
datasource 配置:spring: mvc: async: request-timeout: 30s ## davinci datasouce config datasource: url: jdbc:mysql://localhost:3306/davinci0.3?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true username: root password: 123456 driver-class-name: com.mysql.jdbc.Driver initial-size: 2 min-idle: 1 max-wait: 60000 max-active: 10
mail 配置:
spring: mail: host: smtp.163.com port: 25 username: xxxxxxx@163.com password: xxxxxx nickname: Davinci properties: smtp: starttls: enable: true required: true auth: true mail: smtp: ssl: enable: false
phantomjs 配置:
phantomjs 是用来定时发送报表截图的,只需要配置安装好的 phantomjs 可执行文件地址即可phantomjs_home: /root/soft/phantomjs
-
启动Davinci
[root@cdh01 davinci]# bin/start-server.sh ...
访问地址: http://192.168.154.101:8080/
username: super@davinci.com
password: 123456
Davinci部署安装
最新推荐文章于 2024-05-07 09:59:12 发布