LInstructions for deploying wgcloud on Linux (using CentOS as an example for installation)
Firstly, let's download the installation package. Actually, Windows deployment is relatively simple, just unzip and start up. However, the prerequisite is that we need to prepare MySQL and configure JDK 1.8 (JDK and MySQL are required on the server side, but not on the agent side)
1、Install MySQL
If MySQL is needed, there is no need to install it. MySQL does not necessarily need to be installed on the same host as the server, it can be installed on other hosts as long as the server host can access MySQL
WGCLOUD also supports MariaDB, PostgreSQL, SQLServer, and Oracle as data sources. Here, I will take MySQL as an example to illustrate
Installing MySQL on Linux
The server side needs to connect to the database, while the agent does not need to connect to the database. The database can be installed on the same host as the server
If you have already installed it, please continue reading below
2、Install JDK1.8
Linux installation of JDK 1.8
JDK11 is also available, and higher JDK versions are also possible. The server side requires JDK, while the agent side does not require JDK or other dependent components. If you have already installed it, please continue reading below
3、Firstly, download the Linux version, using wgcloud-v3.5.2.tar.gz as an example for illustration
4、Initialize database
This product's database uses MySQL, version 5.6 or above, which is also supported by MySQL 8. PostgreSQL, Oracle, and SQLServer can also be used
Create a database named wgcloud and set the character set to UTF-8 Unicode
Import the corresponding SQL script, the SQL file is in the installation package, and after decompression, you can see it in the SQL folder
SQL operation command reference
5、Extract installation package
MySQL installation package download:Click to download
MySQL installation can simply default to the next step. There is also a lot of information available online, so the specific installation steps will not be described here
6、Extract installation package
7、Modify the MySQL database connection information, server/config/application.yml
Change the information in the red box in the following image to your own actual MySQL information
8、Start the server
Attention: Linux checks whether the files in the red box below have executable permissions. If not, assign executable permissions
./start.sh Start the program, ./stop.sh Stop the program
After startup, be careful not to close the daemon process, wgcloud-daemon-release
9、Start the agent
Attention: Linux checks whether the files in the red box below have executable permissions. If not, assign executable permissions
./start.sh Start the program, ./stop.sh Stop the program
Please note that the server URL for agent/config/application.properties needs to be changed to the IP and port of the server host
If other hosts deploy agents, click to view
10、visit, http://localhost:9999
Default login account password:admin/111111
Finally, it is important to open 9999 on the server host to access by the agent host, so that the agent host can telnet 9999
At this point, the deployment is complete