Instructions on how to deploy and install wgcloud on Windows
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 (The server side requires JDK and MySQL, but the agent does not require these two items)
JDK 11 or higher versions of JDK are also acceptable, and the agent side does not require JDK or other dependent components
WGCLOUD also supports MariaDB, PostgreSQL, SQLServer, and Oracle as data sources. Here, I will take MySQL as an example to illustrate
1、First, download (Windows version), Here is an example using wgcloud-v3.5.2. zip to illustrate
2、The host for deploying the server needs to be configured with JDK 1.8, JDK 11, and higher versions of JDK
The server host requires a JDK 1.8 environment, but the agent does not require JDK or other dependent environments
If JDK1.8 has already been configured, please skip this step
Windows configuration JDK instructions
3、Install MySQL (without MySQL, MariaDB, PostgreSQL, Oracle, SQL Server databases are also available)
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
The server side needs to connect to the database, while the agent does not need to connect to the database
4、Extract installation package
5、Import wgcloud.sql database initialization table script
Create a new database wgcloud, and then import the SQL/wgcloud MySQL. SQL file from the installation package. It is recommended to use a client-side tool for easy import, such as Navicat Premium
6、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
7、Start the server
Double click start.bat to start it
After startup, be careful not to close the daemon process, wgcloud-daemon-release.exe
8、Start the agent
Right click to start and run as administrator, wgcloud-agent-release.exe
If the agent and server are started and run directly on the same host, remember to modify the agent/config/application.properties if they are not on the same host, as shown in the red highlighted information in the following figure
Other hosts need to be monitored. Copy the agent to the target monitoring host and start it. Remember to change the bindIP
Server and agent can also be registered as system services, it will hide the window and run, and it can also be turned on and started
9、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了