Recently, because I want to do large-screen data visualization analysis, I learned about DataEase, a data visualization analysis tool. This tool is quite different from the echarts and other charting libraries I used in the past. It can quickly create various reports and dashboards with zero code, and complete various data visualizations and work reports. Although most people read the official documentation to install it, it can solve 90% of the problems. But it is inevitable that some people just want to use this tool, and may be confused about some installation details of the document. I also stepped on a lot of pitfalls before installing it, and figured out some configuration relationships of the tools. So I wrote a special blog today, one is to recommend this free tool to everyone, and the other is to teach you to quickly install and deploy it to save time. ( Note: This tutorial defaults that you have a cloud server, and docker is installed on your cloud server, and the security group has been configured by yourself. If you don’t know how to install docker, please read my previous blog about docker installation. )
1. Installation method introduction
The official provides many installation methods. However, the best and most convenient installation method is the online installation method of Linux . This installation method can avoid 99% of the problems. Because this installation method uses docker technology, it can avoid problems caused by the server environment and software version. This article is also based on this installation method.
The other two installation methods are Linux离线安装
and windows离线安装
. These two methods are very prone to problems. And the dependence on the environment is very high, you need to install MySQL5.7, java8, maven and other software by yourself, and then perform a series of tedious configurations. And if there is a problem in one step, it will bring a series of problems. If you just like to toss, then you can go out and feel the pain.
Not much to say, let's start now!
2. Installation and deployment
Execute the command for one-click installation on the server:
curl -sSL https://github.com/dataease/dataease/releases/latest/download/quick_start.sh | sh
That's right, you only need to execute this command to install online, and wait for it to download and install. Because this command downloads the installer from GitHub, problems such as connection timeout and download failure may occur. But this is not a problem, you just need to run this command a few more times to download and install it.
You just need to wait for it to finish running this command, and you don’t need to care about whether it reports an error when it runs or after it finishes running, and what error it reports. The error is reported here because we have not configured the port and so on. You only need to wait for it to finish running in this step, and don't care about error reporting.
3. Simple configuration
Let me tell you why you need to configure it first. My personal conclusion is that port 80 of most people's servers may have been occupied by nginx, and port 3306 may also be occupied by the MySQL database originally installed on the server. But as I said before, the online installation method of this tutorial is based on docker technology. When we installed DataEase for the first time, the external access port of DataEase mapped by DockerFile in the program was port 80 by default, and the external access port of MySQL database mapped by default was port 3306. That is to say, if your two ports are already occupied by other programs on the server, you will not be able to build a correct docker container during installation. So an error will be reported when installing and deploying.
After the following simple configuration, it can run normally without error.
Modify /opt/dataease/docker-compose-mysql.yml
the file , and change the MySQL external running port parameter ${DE_MYSQL_PORT} to a new port, such as port 3636:
vi /opt/dataease/docker-compose-mysql.yml
After changing esc键
, press :wq
Enter to save. What a babysitter!
For the next configuration, modify /opt/dataease/.env
this (if there are other needs in the future, many configurations must be changed in this file). Change DE_PORT to other non-80 ports, such as 8765. Change DE_MYSQL_PORT to a new port such as 3636. Remember to save after changing! :
4. Restart the project
DataEase has a built-in command line operation and maintenance tool by default dectl
. Through this command, we can view the operation status, start, restart, uninstall tool and other operations of DataEase.
Order | Function |
---|---|
status | View the running status of the DATAEASE service |
start | Start the DATAEASE service |
stop | Stop the DATAEASE service |
restart | Restart the DATAEASE service |
reload | Reload the DATAEASE service |
uninstall | Uninstall the DATAEASE service |
upgrade | Upgrade DATAEASE service |
version | View DATAEASE version information |
Then run the reload command to reload the service:
dectl reload
Then restart restarts the service:
dectl restart
OK, here we go. I believe everyone has successfully run it. Then you can access and use this tool in the browser~
5. Browser access tool
The browser accesses the address of your server IP plus the port number you configured. Will enter a login interface. Enter the default account password to log in.
If you want to connect to the MySQL database, the same is true, the port is the new port of the database configured by yourself. Default database user name: root, default database password: Password123@mysql.