摘要: 一、部署1、创建springboot项目2、添加maven依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <de 阅读全文
posted @ 2025-09-03 17:55 pk.com.cn 阅读(18) 评论(0) 推荐(0)
摘要: 一、sentinel-dashboard部署1.下载下载地址:https://github.com/alibaba/Sentinel/tags下载ZIP进入文件夹:sentinel-dashboard;mvn package 打包成 sentinel-dashboard.jar2.启动java -D 阅读全文
posted @ 2025-08-27 16:27 pk.com.cn 阅读(41) 评论(0) 推荐(0)
摘要: 一、背景环境1、maven 引用<dependency> <groupId>com.alibaba.boot</groupId> <artifactId>nacos-discovery-spring-boot-starter</artifactId> <version>0.2.12</version 阅读全文
posted @ 2025-08-17 21:57 pk.com.cn 阅读(19) 评论(0) 推荐(0)
摘要: nacos版本:3.0.2 需要jdk版本:64 bit JDK 17+ 一、JDK安装及配置 jdk下载:https://jdk.java.net/java-se-ri/22 JDK配置: vim /etc/profile export JAVA_PATH=/zjl/program/jdk_22 阅读全文
posted @ 2025-08-15 19:23 pk.com.cn 阅读(96) 评论(0) 推荐(0)
摘要: 历史版本mysql4.5安装过程https://www.cnblogs.com/happydreamzjl/p/8631002.html不同点一、下载1、下载地址https://dev.mysql.com/downloads/mysql/linux版本:CentOS 7.5下载mysql版本:mys 阅读全文
posted @ 2025-08-03 13:33 pk.com.cn 阅读(21) 评论(0) 推荐(0)
摘要: 1.SSH密钥 1.1.生成密钥 SSH配置文件位置 :~/root/.ssh/config ssh-keygen –t rsa –b 2048 -C "your_email@example.com" 这里,-t rsa指定使用RSA算法,-b 4096指定密钥长度为4096位,-C后面是你的电子邮 阅读全文
posted @ 2025-07-20 21:42 pk.com.cn 阅读(58) 评论(0) 推荐(0)
摘要: 一、下载安装 1、下载地址 https://www.apache.org/dyn/closer.cgi?path=/kafka/2.4.0/kafka_2.13-2.4.0.tgz 下载命令:wget http://mirrors.tuna.tsinghua.edu.cn/apache/kafka/ 阅读全文
posted @ 2020-01-17 17:59 pk.com.cn 阅读(16740) 评论(0) 推荐(1)
摘要: mq事务介绍 mq事务消息流程 1、配置文件 详情见:https://www.cnblogs.com/happydreamzjl/p/12022412.html 2、生产者 1、生产者配置 生产者发送工具类 package com.gofun.customer.mqTrans; import com 阅读全文
posted @ 2019-12-11 17:00 pk.com.cn 阅读(652) 评论(0) 推荐(1)
摘要: 1、配置文件 1、yml配置文件 2、对应的java类 package com.gofun.customer.mq; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationP 阅读全文
posted @ 2019-12-11 14:34 pk.com.cn 阅读(1340) 评论(0) 推荐(0)
摘要: 一、引入redis包 二、仅做配置 springboot 自动装配类为:RedisAutoConfiguration 正常情况下,只需要配置yml 文件或property 文件就可以使用 redisTemplate 进行redis 操作,以yml配置为例 1、单机redis配置 2、sentinel 阅读全文
posted @ 2019-12-06 18:44 pk.com.cn 阅读(673) 评论(0) 推荐(0)