Server端
- 上传davinci zip包到系统某个目录下 并解压,例如. /app/davinci。解压之后的目录结构如下图所示:
主要的配置项包括:mysqldb(请确保连接地址的正确性,初始化数据库时也会用到!!!)、httpServer(ps:如需接入ldap或者cache,可继续加入ldap、cache的相关配置)
数据库配置项
profile = "slick.jdbc.MySQLProfile$"
db {
url = "jdbc:mysql://localhost:3306/db?useSSL=false"
user = ""
password = ""
profile = com.mysql.jdbc.Driver
keepAliveConnection = true
}
httpServer {
host = "localhost"
port = 8080
}
ldap配置项
cache配置项
cache {
isEnable = true
url: "127.0.0.1:6379"
mode:"stand-alone"
}
vi conf/log4j.properties
- 配置DAVINCI_HOME
上传mysql-connector-java-{version}.jar到 $DAVINCI_HOME/lib
初始化数据库(只在首次启动时需要进行初始化)
cd /app/davinci/bin
vi initdb.sh
sh initdb.sh
配置并且初始化完成后就可以启动davinci server了。