随笔 - 221  文章 - 0  评论 - 57  阅读 - 162万 
03 2023 档案
解决docker环境apt-get命令太慢问题
摘要:最近学习doris,准备在本地使用docker搭建一个环境,doris文档提供Dockfile中有这么一段: RUN apt-get update && \ apt-get install -y default-mysql-client && \ apt-get clean && \ mkdir / 阅读全文
posted @ 2023-03-31 11:17 玄同太子 阅读(2795) 评论(0) 推荐(0) 编辑
docker启动失败 exec /xxx.sh: no such file or directory
摘要:正常编写的.sh文件拷贝到docker容器,启动时报错no such file or directory,大概率是格式问题 可以用notepad++转换成unix格式,在拷贝到linux环境 如果在linux环境下,我们可以用vi命令打开文件,再按组合建shift+:;(:;为字母L右边的按键) 在 阅读全文
posted @ 2023-03-30 19:15 玄同太子 阅读(1015) 评论(0) 推荐(0) 编辑
docker启动失败后怎么查看日志
摘要:方法一: docker logs --since 30m container # 查看30分钟日志,容器成功失败都可以查看,container表示容器名称或ID 方法二: docker inspect --format '{{.LogPath}}' container # 查询容器日志文件目录 vi 阅读全文
posted @ 2023-03-30 17:40 玄同太子 阅读(753) 评论(0) 推荐(0) 编辑
on duplicate key update
摘要:on duplicate key update是mysql的特殊用法,当insert操作出现主键冲突时执行更新操作,样例如下: insert into zhi_test.bd_user (id, user_code, user_name, create_time, update_time) valu 阅读全文
posted @ 2023-03-24 15:47 玄同太子 阅读(217) 评论(0) 推荐(0) 编辑
Spring重试框架验证(spring-retry)
摘要:最近研究openfeign的重试原理时,发现其依赖spring-retry框架,不禁好奇并测试一二。使用步骤如下: 1、添加pom.xml依赖(springboot版本为2.6.14) <dependency> <groupId>org.springframework.boot</groupId> 阅读全文
posted @ 2023-03-08 14:27 玄同太子 阅读(536) 评论(0) 推荐(0) 编辑
nacos注册成windows服务
摘要:1、下载winsw,我用得版本是v2.11.0 下载地址:https://github.com/winsw/winsw/releases 2、将下载的WinSW-x64.exe放到 nacos\bin 目录,并改名为nacos.exe 3、在 nacos\bin 目录下创建nacos.xml文件 < 阅读全文
posted @ 2023-03-07 10:27 玄同太子 阅读(413) 评论(0) 推荐(1) 编辑
Windows系统安装Redis服务
摘要:网上有很多的安装教程,但Redis版本都比较老,最近从github上搜索到最新版本,验证可用,记录一下 1、应用下载地址:https://github.com/zkteco-home/redis-windows 2、选择对应得tag,下载安装包。下载7.0.9。 3、安装和取消安装服务 redis- 阅读全文
posted @ 2023-03-03 15:11 玄同太子 阅读(1457) 评论(1) 推荐(0) 编辑
springboot使用springdoc代替springfox集成swagger
摘要:springfox-boot-starter最新版本号为3.0.0,能够很好的集成swagger3到springboot项目中,但开局即巅峰,进入21年后,springfox就再没有更新维护,目前存在不少问题,且与spring-webmvc >= 5.3版本不兼容,springboot版本升级后会出 阅读全文
posted @ 2023-03-01 14:08 玄同太子 阅读(1038) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示