启动服务和访问
1、若是Linux平台,检查下面红框内的文件是否有可执行权限,若无,则赋给可执行权限
2、Linux平台部署的时候,使用指令 sh start.sh 启动服务(重启也用该指令),使用指令 sh stop.sh 停止服务
windows平台部署的时候,使用start.bat启动,启动后不可关闭黑窗口(尤其不要左键点击黑窗口,就会进入选择模式,就会阻塞运行,右击释放),停止服务关掉即可。也可以将WGCAT注册为windows系统服务,实现开机启动和隐藏黑窗口
3、wgcat服务启动完成大概需要10秒,注意:启动wgcat程序时,会同时守护进程wgcat-daemon-relese,不要关闭守护进程
wgcat运行的日志文件在log/文件夹下,看到日志中有如下打印信息说明服务启动完成
......
2024-09-12 12:00:43.149 [main] INFO  org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2024-09-12 12:00:43.260 [main] INFO  o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2024-09-12 12:00:43.261 [main] INFO  o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 2815 ms
2024-09-12 12:00:44.260 [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-09-12 12:00:44.261 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2024-09-12 12:00:44.283 [main] WARN  com.zaxxer.hikari.util.DriverDataSource - Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
2024-09-12 12:00:44.735 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2024-09-12 12:00:45.715 [main] INFO  com.wgcloud.util.IdGeneratorSnowflake - 当前机器的workerId: 0
2024-09-12 12:00:46.074 [main] INFO  o.s.b.a.web.servlet.WelcomePageHandlerMapping - Adding welcome page template: index
2024-09-12 12:00:46.612 [main] INFO  o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9995 (http) with context path ''
2024-09-12 12:00:46.632 [main] INFO  com.wgcloud.WgcloudServiceApplication - Started WgcloudServiceApplication in 7.4 seconds (JVM running for 9.065)
......
4、启动完成后,浏览器输入 http://192.168.1.1:9995 登录,将URL中的信息改为自己的主机IP和web端口,默认登录账号/密码:admin/111111
WGCAT运维工单系统登陆页面截图
 
部署完成
上一步    返回安装目录