启动服务和访问
1、server启动(进入server/目录启动,记得先启动数据库服务)
(1) 若是Linux平台,检查下面红框内的文件是否有可执行权限,若无,则赋给可执行权限
(2) Linux部署的server,使用指令 sh start.sh 启动服务(重启也用该指令),使用指令 sh stop.sh 停止服务
(3) windows部署的server,使用start.bat启动,启动后不可关闭黑窗口(尤其不要左键点击黑窗口,就会进入选择模式,就会阻塞运行,右击释放),停止服务关掉即可。也可以将server注册为windows系统服务,实现开机启动和隐藏黑窗口
(4) server启动完成大概需要10秒,注意:启动server,会同时守护进程wgcloud-daemon-relese,不要关闭守护进程
server运行的日志文件在server/log/,看到日志文件中有如下打印信息说明server启动完成
......
2024-07-15 22:09:28.555 [main] INFO  org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2024-07-15 22:09:28.903 [main] INFO  o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-07-15 22:09:28.904 [main] INFO  o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 3215 ms
2024-07-15 22:09:29.528 [main] WARN  com.zaxxer.hikari.HikariConfig - HikariPool-1 - idleTimeout has been set but has no effect because the pool is operating as a fixed size pool.
2024-07-15 22:09:29.529 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2024-07-15 22:09:29.543 [main] WARN  com.zaxxer.hikari.util.DriverDataSource - Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2024-07-15 22:09:29.895 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2024-07-15 22:09:32.230 [main] INFO  com.wgcloud.util.IdGeneratorSnowflake - 当前机器的workerId: 0
2024-07-15 22:09:32.741 [main] INFO  o.s.b.a.web.servlet.WelcomePageHandlerMapping - Adding welcome page template: index
2024-07-15 22:09:33.596 [main] INFO  o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9999 (http) with context path ''
2024-07-15 22:09:33.628 [main] INFO  com.wgcloud.WgcloudServiceApplication - Started WgcloudServiceApplication in 9.213 seconds (JVM running for 10.228)
2024-07-15 22:09:33.653 [main] INFO  com.wgcloud.common.ApplicationStartListener - NettyServer服务启动,端口:9998
2024-07-15 22:09:38.637 [taskScheduler-1] INFO  com.wgcloud.task.ScheduledTask - validateLicense------------2024-07-15 22:09:38
......
启动完成后,浏览器输入 http://192.168.1.1:9999 登录,将URL中的信息改为自己的server主机IP和web端口,默认登录账号/密码:admin/111111
WGCLOUD监控系统登陆页面截图
提示:wgcloud-daemon-release是server的守护进程,它随server同时启动,不要关闭或者kill它
2、agent启动(进入agent/目录启动)
(1) 若是Linux平台,检查下面红框内的文件是否有可执行权限,若无,则赋给可执行权限
(2) Linux部署的agent,使用指令 sh start.sh 启动服务(重启也用该指令),使用指令 sh stop.sh 停止服务
(3) windows部署的agent,用管理员身份运行wgcloud-agent-release.exe,启动后不可关闭黑窗口,停止服务关掉即可。也可以将agent注册为windows系统服务,实现开机启动和隐藏黑窗口
(4) agent运行的日志文件在agent/log/
其他主机若需要监控,查看如何在监控主机上单独部署agent
3、部署完成
上一步    返回安装目录