如何启动server程序和访问
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/下,默认只保留最近30天的日志,看到日志文件中有如下打印信息说明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它
server如果部署在ARM,MacOS、龙芯Mips等平台,需要替换下wgcloud-daemon-release
 
上一步    下一步