Data Visualization Part 8: Davinci of Linux Installation Davinci

1. Create a directory and unzip

mkdir -p /root/app/davinci

unzip /tmp/davinci-assembly_3.0.1-0.3.1-SNAPSHOT-dist-beta.9.zip -d /root/app/davinci/image.png

2. Configure environment variables

vi /etc/profile

 #DAVINCI3_HOME

export DAVINCI3_HOME=/root/app/davinci/

export PATH=$PATH:$DAVINCI3_HOME/bin

image.png

you ~ / .bash_profile

 #DAVINCI3_HOME

export DAVINCI3_HOME=/root/app/davinci/

export PATH=$PATH:$DAVINCI3_HOME/bin

image.png

source /etc/profile

source ~/.bash_profile 

image.png

3. Initialize the database

mysql -P 3306 -h localhost -u root -p000000 davinci3 < $DAVINCI3_HOME/bin/davinci.sql

image.png

4. Modify the davinci configuration file (yml requirements, after each configuration : there must be 1 space)

cd $DAVINCI3_HOME/config

mv application.yml.example application.yml

vi application.yml

image.png

image.png

Note: The library name is davinci3

image.png

In the case, I used the mailbox of 163. In fact, Davinci supports a lot of mailboxes, so I stick out all the officially supported ones.

image.png

5. Open the davinci service

sh $DAVINCI3_HOME/bin/start-server.sh

image.png

You can press the key combination Ctrl+C to exit the screen refresh. View logs in the background

6. View the startup log

cd $DAVINCI3_HOME/logs/sys

tail -f -n 100 davinci.2020-01-19.log

7. Login to view the page

Enter http://192.168.8.102:8080

image.png

Seeing this page, congratulations on successfully installing Davinci.


Attach common errors:

Error message 1:

2020-01-19 17:05:47.263 ERROR 27680 --- [Druid-ConnectionPool-Create-1373254373] com.alibaba.druid.pool.DruidDataSource   : create connection SQLException, url: jdbc:mysql://localhost:3306/davinci3?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true, errorCode 1045, state 28000

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3976)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3912)

at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:871)

at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1714)

at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)

at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2190)

Solution: It seems that the permissions are not enough, or the password is wrong. In fact, in the yml configuration file, enclose the user and password with ""


Error message 2:

2020-01-19 17:

[root@hadoop102 config]# sh $DAVINCI3_HOME/bin/start-server.sh

==========================================

Starting..., press `CRTL + C` to exit log

==========================================

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Solution: The JDK version is too low, and the version 1.8 and above is not installed.

Guess you like

Origin blog.51cto.com/51power/2539786