ktg-mes、ktm-mes-ui部署

一、git源码

https://gitee.com/kutangguo

image

 https://gitee.com/kutangguo/ktg-mes

git clone https://gitee.com/kutangguo/ktg-mes-ui.git

 

https://gitee.com/kutangguo/ktg-mes-ui

git clone https://gitee.com/kutangguo/ktg-mes.git

 

https://gitee.com/kutangguo/ktg-mes/commits/master

image

 

二、数据库

MySQL Workbench 8.0 CE 创建数据库 j2eedb

image

 

image

 

image

 

三、Redis

1.下载

https://github.com/microsoftarchive/redis/releases

image

 

2.解压

image

 

3.启动服务

image

 

4.启动客户端

image

 

 5.配置环境变量(方便使用命令启动)

image

 

image

 

image

 

image

6.创建自启动服务

切换到Redis的安装目录
cd D:\Environment\Redis-x64-3.0.504

创建Redis服务
redis-server --service-install redis.windows.conf --loglevel verbose

判断是否创建成功,出现Redis successfully installed as a service.

image

 

 在Windows服务管理器中也能查看到Redis服务,之后开机就会自启动。

image

 

四、Node环境

https://nodejs.org/en/download

image

 

image

 

四、后端

IntelliJ IDEA 打开项目 ktg-meg,检查数据库配置、Redis配置,Ctrl+Alt+Shift+S配置JDK1.8,运行启动文件。

1.数据库配置

image

 

2.Redis配置

image

 

 3.JDK配置

image

 

4.同步/重新加载所有maven项目

image

 

5.运行 RuoYiApplication.main

image


Application Version: ${ktg.version}
Spring Boot Version: 2.5.12
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////
15:29:27.982 [restartedMain] INFO c.k.RuoYiApplication - [logStarting,55] - Starting RuoYiApplication using Java 1.8.0_161 on PC00013387 with PID 57272 (E:\06研发中心\GIT\RuoyYi\ktg-mes\ktg-admin\target\classes started by lizhg in E:\06研发中心\GIT\RuoyYi\ktg-mes)
15:29:27.984 [background-preinit] INFO o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.3.Final
15:29:27.985 [restartedMain] DEBUG c.k.RuoYiApplication - [logStarting,56] - Running with Spring Boot v2.5.12, Spring v5.3.18
15:29:27.985 [restartedMain] INFO c.k.RuoYiApplication - [logStartupProfileInfo,681] - The following 1 profile is active: "druid"
15:29:31.551 [restartedMain] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8080"]
15:29:31.551 [restartedMain] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
15:29:31.552 [restartedMain] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.60]
15:29:31.630 [restartedMain] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
15:29:34.771 [restartedMain] DEBUG c.k.f.s.f.JwtAuthenticationTokenFilter - [init,242] - Filter 'jwtAuthenticationTokenFilter' configured for use
15:29:37.776 [restartedMain] INFO c.a.d.p.DruidDataSource - [init,998] - {dataSource-1} inited
15:29:37.781 [restartedMain] DEBUG c.k.s.m.S.selectConfigList - [debug,137] - ==> Preparing: select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark from sys_config
15:29:37.995 [restartedMain] DEBUG c.k.s.m.S.selectConfigList - [debug,137] - ==> Parameters:
15:29:38.053 [restartedMain] DEBUG c.k.s.m.S.selectConfigList - [debug,137] - <== Total: 5
15:29:40.307 [restartedMain] DEBUG c.k.s.m.S.selectDictDataList - [debug,137] - ==> Preparing: select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark from sys_dict_data WHERE status = ? order by dict_sort asc
15:29:40.329 [restartedMain] DEBUG c.k.s.m.S.selectDictDataList - [debug,137] - ==> Parameters: 0(String)
15:29:40.432 [restartedMain] DEBUG c.k.s.m.S.selectDictDataList - [debug,137] - <== Total: 309
15:29:40.864 [restartedMain] INFO o.q.i.StdSchedulerFactory - [instantiate,1220] - Using default implementation for ThreadExecutor
15:29:40.899 [restartedMain] INFO o.q.c.SchedulerSignalerImpl - [<init>,61] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
15:29:40.901 [restartedMain] INFO o.q.c.QuartzScheduler - [<init>,229] - Quartz Scheduler v.2.3.2 created.
15:29:40.904 [restartedMain] INFO o.q.s.RAMJobStore - [initialize,155] - RAMJobStore initialized.
15:29:40.907 [restartedMain] INFO o.q.c.QuartzScheduler - [initialize,294] - Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

15:29:40.908 [restartedMain] INFO o.q.i.StdSchedulerFactory - [instantiate,1374] - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
15:29:40.908 [restartedMain] INFO o.q.i.StdSchedulerFactory - [instantiate,1378] - Quartz scheduler version: 2.3.2
15:29:40.909 [restartedMain] INFO o.q.c.QuartzScheduler - [setJobFactory,2293] - JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@2a5d2a3f
15:29:40.961 [restartedMain] DEBUG c.k.q.m.S.selectJobAll - [debug,137] - ==> Preparing: select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark from sys_job
15:29:40.962 [restartedMain] DEBUG c.k.q.m.S.selectJobAll - [debug,137] - ==> Parameters:
15:29:40.971 [restartedMain] DEBUG c.k.q.m.S.selectJobAll - [debug,137] - <== Total: 0

_____ __________ __________________ _______ ________ ______________
__ / / /___ __ \___ ____/___ __ \__ __ \___ __ \___ __/__|__ \
_ / / / __ /_/ /__ __/ __ /_/ /_ / / /__ /_/ /__ / ____/ /
/ /_/ / _ _, _/ _ /___ _ ____/ / /_/ / _ _, _/ _ / _ __/
\____/ /_/ |_| /_____/ /_/ \____/ /_/ |_| /_/ /____/
........................................................................................................
. uReport, is a Chinese style report engine licensed under the Apache License 2.0, .
. which is opensource, easy to use,high-performance, with browser-based-designer. .
........................................................................................................

15:29:47.122 [restartedMain] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8080"]
15:29:48.326 [restartedMain] INFO o.q.c.QuartzScheduler - [start,547] - Scheduler quartzScheduler_$_NON_CLUSTERED started.
15:29:48.337 [restartedMain] INFO c.k.RuoYiApplication - [logStarted,61] - Started RuoYiApplication in 20.836 seconds (JVM running for 23.101)
(♥◠‿◠)ノ゙ KTM-MES启动成功 ლ(´ڡ`ლ)゙

 

五、前端

VS Code 打开项目 ktg-meg-ui,检查配置,安装依赖,运行。

image

 

npm install

image

 

npm run dev

image

 

 六、演示

image

 

 testuser/123456

image

 admin/admin123

image

 

 

posted @ 2025-09-04 15:06  lizhigang  阅读(67)  评论(0)    收藏  举报