diff --git a/os-admin/src/main/resources/application.yml b/os-admin/src/main/resources/application.yml index 42bf729..28f81d7 100644 --- a/os-admin/src/main/resources/application.yml +++ b/os-admin/src/main/resources/application.yml @@ -108,7 +108,7 @@ token: # 令牌密钥 secret: abcdefghijklmnopqrstuvwxyz # 令牌有效期(默认30分钟) - expireTime: 1440000000000000 + expireTime: 2147479999 # MyBatis配置 mybatis: diff --git a/麒麟系统环境部署命令/5.txt b/麒麟系统环境部署命令/5.txt new file mode 100644 index 0000000..409ce01 --- /dev/null +++ b/麒麟系统环境部署命令/5.txt @@ -0,0 +1,89 @@ +[root@localhost ~]# unzip -oq dist.zip -d /media/tao_iot/dist +unzip: cannot find or open dist.zip, dist.zip.zip or dist.zip.ZIP. +[root@localhost ~]# cd /media/tao_iot +[root@localhost tao_iot]# unzip -oq dist.zip -d /media/tao_iot/dist +[root@localhost tao_iot]# systemctl daemon-reload +[root@localhost tao_iot]# systemctl enable haiwei-admin.service +[root@localhost tao_iot]# systemctl start haiwei-admin.service +[root@localhost tao_iot]# systemctl status haiwei-admin.service +● haiwei-admin.service - Haiwei Admin Service + Loaded: loaded (/etc/systemd/system/haiwei-admin.service; enabled; vendor preset: disabled) + Active: active (running) since Fri 2025-05-30 11:15:39 CST; 4 days ago + Main PID: 1964 (java) + Tasks: 317 + Memory: 1.4G + CGroup: /system.slice/haiwei-admin.service + └─1964 /usr/bin/java -jar /media/tao_iot/haiwei-admin.jar + +6月 03 11:52:00 localhost.localdomain java[1964]: ==== 开始执行阈值检查定时任务 ==== +6月 03 11:52:00 localhost.localdomain java[1964]: 11:52:00.001 [schedule-pool-40] DEBUG c.o.e.r.m.R.checkTableExists - [debug,135] - ==> Preparing: SELECT COUNT(1) FROM information_schema.tables WHERE tabl>6月 03 11:52:00 localhost.localdomain java[1964]: 11:52:00.001 [schedule-pool-40] DEBUG c.o.e.r.m.R.checkTableExists - [debug,135] - ==> Parameters: record_iotenv_instant_20250603(String) +6月 03 11:52:00 localhost.localdomain java[1964]: 11:52:00.004 [schedule-pool-40] DEBUG c.o.e.r.m.R.checkTableExists - [debug,135] - <== Total: 1 +6月 03 11:52:00 localhost.localdomain java[1964]: 11:52:00.005 [schedule-pool-40] DEBUG c.o.e.r.m.E.selectEmsRecordAlarmRuleList - [debug,135] - ==> Preparing: SELECT RAL.obj_id, RAL.rule_id, RAL.rule_name>6月 03 11:52:00 localhost.localdomain java[1964]: 11:52:00.006 [schedule-pool-40] DEBUG c.o.e.r.m.E.selectEmsRecordAlarmRuleList - [debug,135] - ==> Parameters: +6月 03 11:52:00 localhost.localdomain java[1964]: 11:52:00.010 [schedule-pool-40] DEBUG c.o.e.r.m.E.selectEmsRecordAlarmRuleList - [debug,135] - <== Total: 0 +6月 03 11:52:00 localhost.localdomain java[1964]: 查询到的告警规则 - 大于阈值规则: 0 条, 小于阈值规则: 0 条 +6月 03 11:52:00 localhost.localdomain java[1964]: 没有启用的阈值告警规则 +6月 03 11:52:00 localhost.localdomain java[1964]: ==== 阈值检查定时任务执行完成,耗时: 11ms ==== + +[root@localhost tao_iot]# +[root@localhost tao_iot]# ps aux | grep java +root 1964 0.1 4.4 31028160 1340736 ? Ssl 5月30 10:08 /usr/bin/java -jar /media/tao_iot/haiwei-admin.jar +root 65499 0.0 0.0 214144 1536 pts/0 S+ 11:54 0:00 grep java +[root@localhost tao_iot]# +[root@localhost tao_iot]# ps aux | grep java +root 1964 0.1 4.4 31028160 1340736 ? Ssl 5月30 10:08 /usr/bin/java -jar /media/tao_iot/haiwei-admin.jar +root 65499 0.0 0.0 214144 1536 pts/0 S+ 11:54 0:00 grep java +[root@localhost tao_iot]# kill -9 1964 +[root@localhost tao_iot]# systemctl daemon-reload +[root@localhost tao_iot]# systemctl enable haiwei-admin.service +[root@localhost tao_iot]# systemctl start haiwei-admin.service +[root@localhost tao_iot]# systemctl status haiwei-admin.service +● haiwei-admin.service - Haiwei Admin Service + Loaded: loaded (/etc/systemd/system/haiwei-admin.service; enabled; vendor preset: disabled) + Active: activating (auto-restart) (Result: exit-code) since Tue 2025-06-03 11:55:17 CST; 2s ago + Process: 65510 ExecStart=/usr/bin/java -jar /media/tao_iot/haiwei-admin.jar (code=exited, status=1/FAILURE) + Main PID: 65510 (code=exited, status=1/FAILURE) +[root@localhost tao_iot]# +[root@localhost tao_iot]# /usr/local/nginx/sbin/nginx -s reload # 重新加载配置 +[root@localhost tao_iot]# journalctl -u haiwei-admin.service -e +6月 03 11:55:55 localhost.localdomain java[65821]: at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:211) +6月 03 11:55:55 localhost.localdomain java[65821]: at org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:115) +6月 03 11:55:55 localhost.localdomain java[65821]: at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:429) +6月 03 11:55:55 localhost.localdomain java[65821]: at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:402) +6月 03 11:55:55 localhost.localdomain java[65821]: at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:155) +6月 03 11:55:55 localhost.localdomain java[65821]: at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:73) +6月 03 11:55:55 localhost.localdomain java[65821]: ... 80 common frames omitted +6月 03 11:55:55 localhost.localdomain systemd[1]: haiwei-admin.service: Main process exited, code=exited, status=1/FAILURE +6月 03 11:55:55 localhost.localdomain systemd[1]: haiwei-admin.service: Failed with result 'exit-code'. +6月 03 11:56:00 localhost.localdomain systemd[1]: haiwei-admin.service: Service RestartSec=5s expired, scheduling restart. +6月 03 11:56:00 localhost.localdomain systemd[1]: haiwei-admin.service: Scheduled restart job, restart counter is at 4. +6月 03 11:56:00 localhost.localdomain systemd[1]: Stopped Haiwei Admin Service. +6月 03 11:56:00 localhost.localdomain systemd[1]: Started Haiwei Admin Service. +6月 03 11:56:02 localhost.localdomain java[65946]: Application Version: 3.8.7 +6月 03 11:56:02 localhost.localdomain java[65946]: Spring Boot Version: 2.5.15 +6月 03 11:56:02 localhost.localdomain java[65946]: //////////////////////////////////////////////////////////////////// +6月 03 11:56:02 localhost.localdomain java[65946]: // _ooOoo_ // +6月 03 11:56:02 localhost.localdomain java[65946]: // o8888888o // +6月 03 11:56:02 localhost.localdomain java[65946]: // 88" . "88 // +6月 03 11:56:02 localhost.localdomain java[65946]: // (| ^_^ |) // +6月 03 11:56:02 localhost.localdomain java[65946]: // O\ = /O // +6月 03 11:56:02 localhost.localdomain java[65946]: // ____/`---'\____ // +6月 03 11:56:02 localhost.localdomain java[65946]: // .' \\| |// `. // +6月 03 11:56:02 localhost.localdomain java[65946]: // / \\||| : |||// \ // +6月 03 11:56:02 localhost.localdomain java[65946]: // / _||||| -:- |||||- \ // +6月 03 11:56:02 localhost.localdomain java[65946]: // | | \\\ - /// | | // +6月 03 11:56:02 localhost.localdomain java[65946]: // | \_| ''\---/'' | | // +6月 03 11:56:02 localhost.localdomain java[65946]: // \ .-\__ `-` ___/-. / // +6月 03 11:56:02 localhost.localdomain java[65946]: // ___`. .' /--.--\ `. . ___ // +6月 03 11:56:02 localhost.localdomain java[65946]: // ."" '< `.___\_<|>_/___.' >'"". // +6月 03 11:56:02 localhost.localdomain java[65946]: // | | : `- \`.;`\ _ /`;.`/ - ` : | | // +6月 03 11:56:02 localhost.localdomain java[65946]: // \ \ `-. \_ __\ /__ _/ .-` / / // +6月 03 11:56:02 localhost.localdomain java[65946]: // ========`-.____`-.___\_____/___.-`____.-'======== // +6月 03 11:56:02 localhost.localdomain java[65946]: // `=---=' // +6月 03 11:56:02 localhost.localdomain java[65946]: // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // +6月 03 11:56:02 localhost.localdomain java[65946]: // 佛祖保佑 永不宕机 永无BUG // +6月 03 11:56:02 localhost.localdomain java[65946]: //////////////////////////////////////////////////////////////////// +6月 03 11:56:03 localhost.localdomain java[65946]: 11:56:03.157 [main] INFO c.o.RuoYiApplication - [logStarting,55] - Starting RuoYiApplication using Java 1.8.0_312 on localhost.localdomain with PID 65946 >6月 03 11:56:03 localhost.localdomain java[65946]: 11:56:03.156 [background-preinit] INFO o.h.v.i.util.Version - [,21] - HV000001: Hibernate Validator 6.2.5.Final +6月 03 11:56:03 localhost.localdomain java[65946]: 11:56:03.163 [main] DEBUG c.o.RuoYiApplication - [logStarting,56] - Running with Spring Boot v2.5.15, Spring v5.3.33 +6月 03 11:56:03 localhost.localdomain java[65946]: 11:56:03.165 [main] INFO c.o.RuoYiApplication - [logStartupProfileInfo,686] - The following 1 profile is active: "druid" + +[root@localhost tao_iot]# \ No newline at end of file