官网地址
https://edp963.github.io/davinci/
1、准备
JDK 1.8(或更高版本)
MySql5.5(或更高版本)
Mail Server (本人测试可以不用安装)
phantomjs 或 chrome(需同时安装chromedriver,清注意版本)
phantomjs 的安装步骤:
2、下载安装
下载地址
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
#新建目录
mkdri davinci
mv davinci-assembly_3.0.1-0.3.0-SNAPSHOT-dist-beta.4.zip davinci
cd davinci
#解压
unzip davinci-assembly_3.0.1-0.3.0-SNAPSHOT-dist-beta.4.zip
3、安装MYSQL
略
4、新建表davinci
CREATE DATABASE davinci; exit;
5、配置DAVINCI3_HOME路径
vi /etc/profile
#添加如下内容
#Davinci
export DAVINCI3_HOME=/usr/local/apps/davinci #根据自己的地址填写
source /etc/profile
6、initdb.sh
cd bin
vi initdb.sh
#!/bin/bash
mysql -P 3306 -h localhost -u root -p 密码 davinci < $DAVINCI3_HOME/bin/davinci.sql
7、初始化数据库
sh initdb.sh
8、vim application.yml修改配置文件
进入config目录下修改application.yml配置文件
mv application.yml.example application.yml
vi application.yml
- Server
server:protocol: httpaddress: 172.25.41.27port: 8083
- datasource
datasource:url: jdbc:mysql://localhost:3306/davinci?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=trueusername: rootpassword: rootdriver-class-name: com.mysql.jdbc.Driverinitial-size: 2min-idle: 1max-wait: 60000max-active: 10
- mail:
host: smtp.163.comport: 465username: 1234567@163.com ——邮箱password: ODUYNZAVGEDYXHOJ ——授权码nickname: Davinci
9、运行
-
cd bin
-
./start-server.sh