会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
DaleyZou's Blog
------因为来时的路不可能回头
首页
联系
管理
2025年9月19日
合并本地多个没有 push 的提交为一个提交
摘要: git reset --soft \((git merge-base HEAD origin/\)(git rev-parse --abbrev-ref HEAD)) git commit -m "合并本地未 push 的提交为一个提交"
阅读全文
posted @ 2025-09-19 15:40 DaleyZou
阅读(7)
评论(0)
推荐(0)
2024年1月29日
Linux磁盘满了,清理
摘要: Linux磁盘满了,清理 命令 df -lh sudo find / -type f -size +100M -exec ls -lh {} \; sudo du -sh /var/log sudo rm /var/log/large_log_file.log
阅读全文
posted @ 2024-01-29 21:41 DaleyZou
阅读(14)
评论(0)
推荐(0)
mysql设置变量的方式修改线上数据
摘要: 背景 根据指定的数据, 批量修改线上各种关联数据 思路 定义变量, 批量 sql 处理 对应的SQL SET collation_connection = 'utf8mb4_general_ci'; SET collation_database = 'utf8mb4_general_ci'; SET
阅读全文
posted @ 2024-01-29 21:40 DaleyZou
阅读(11)
评论(0)
推荐(0)
java8线上GC问题排查
摘要: 问题 线上长时间 fullGc 项目输出了对应的gc日志 , 启动参数里增加了对应启动参数 -verbose:gc -Xloggc:/logs/java_gc.log -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+Pri
阅读全文
posted @ 2024-01-29 21:39 DaleyZou
阅读(12)
评论(0)
推荐(0)
java 判断当前时间是否可以执行
摘要: 判断时间 private boolean canTheTimeExecute() { try { if (StringUtils.isEmpty(containerStockSyncTime)) { log.info("[handleContainerStockSyncTask]-execute t
阅读全文
posted @ 2024-01-29 21:38 DaleyZou
阅读(15)
评论(0)
推荐(0)
数据库慢查询治理
摘要: show variables like 'slow_query_log%'; show variables like 'long_query_time%'; set global long_query_time=5; set global slow_query_log=1; select sleep
阅读全文
posted @ 2024-01-29 21:36 DaleyZou
阅读(8)
评论(0)
推荐(0)
mysql 抓取binlog,进行数据变更及并发分析
摘要: 步骤 进入mysql的binlog目录, 我的在 /var/lib/mysql 解析数据 基于错误数据,在解析出的 SQL 文件中搜索匹配 mysql mysqlbinlog 的解析命令 sudo mysqlbinlog --no-defaults --base64-output=decode-ro
阅读全文
posted @ 2024-01-29 21:35 DaleyZou
阅读(17)
评论(0)
推荐(0)
websocket客户端类,工具类中调用到service层去
摘要: maven <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.5</version> </dependency> 代码 @Slf4j @Com
阅读全文
posted @ 2024-01-29 21:34 DaleyZou
阅读(14)
评论(0)
推荐(0)
2023年4月11日
java使用多线程
摘要: 代码 public List<OutboundStationStatis> queryStationStatisticsByTime(Long startTime, Long endTime, List<String> stationCodes) { // 当前任务不支持 count sum 等查询
阅读全文
posted @ 2023-04-11 20:32 DaleyZou
阅读(23)
评论(0)
推荐(0)
我在使用的 idea 插件
摘要: JRebel for IntelliJ .ignore Alibaba Java Coding Guidelines Free Mybatis plugin mybatis plus maven helper mybatisx idea-mybatis-generator Alibaba Cloud
阅读全文
posted @ 2023-04-11 20:31 DaleyZou
阅读(25)
评论(0)
推荐(0)
下一页
公告