Server端

    • 上传davinci zip包到系统某个目录下 并解压,例如. /app/davinci。解压之后的目录结构如下图所示:

    主要的配置项包括:mysqldb(请确保连接地址的正确性,初始化数据库时也会用到!!!)、httpServer(ps:如需接入ldap或者cache,可继续加入ldap、cache的相关配置)

    数据库配置项

    1. profile = "slick.jdbc.MySQLProfile$"
    2. db {
    3. url = "jdbc:mysql://localhost:3306/db?useSSL=false"
    4. user = ""
    5. password = ""
    6. profile = com.mysql.jdbc.Driver
    7. keepAliveConnection = true
    8. }
    1. httpServer {
    2. host = "localhost"
    3. port = 8080
    4. }

    ldap配置项

    cache配置项

    1. cache {
    2. isEnable = true
    3. url: "127.0.0.1:6379"
    4. mode:"stand-alone"
    5. }
    1. vi conf/log4j.properties
    • 配置DAVINCI_HOME
    • 上传mysql-connector-java-{version}.jar到 $DAVINCI_HOME/lib

    • 初始化数据库(只在首次启动时需要进行初始化)

    1. cd /app/davinci/bin
    2. vi initdb.sh
    1. sh initdb.sh

    配置并且初始化完成后就可以启动davinci server了。