会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一任阶前、点滴到天明
首页
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
26
下一页
2022年2月14日
Watchtower - 自动更新 Docker 镜像与容器
摘要: Watchtower 是一款实现自动化更新 Docker 镜像与容器的实用工具.它监控着所有正在运行的容器以及相关镜像,当检测本地镜像与镜像仓库中的镜像有差异时,会自动拉取最新镜像并使用最初部署时的参数重新启动相应的容器. 每天凌晨1点更新(北京时间)并清理旧镜像 docker run -d \ -
阅读全文
posted @ 2022-02-14 16:43 LiuChengloong
阅读(1090)
评论(0)
推荐(0)
2022年2月9日
异步任务工具类
摘要: 异步任务工具类 一个异步任务工具类,可以使用 AsyncManager.me.XXX() 方法开启一个异步任务,底层可以使用 TimerTask 或者 CompletableFuture 或其他异步方式执行方法。 import cn.hutool.log.Log; import cn.hutool.
阅读全文
posted @ 2022-02-09 13:42 LiuChengloong
阅读(497)
评论(0)
推荐(0)
2022年1月26日
Linux添加快捷方式
摘要: 在/usr/share/applications这个目录,其中存放的全部是所有用户可见的快捷方式。在该目录创建xxx.desktop文件即可。具体操作步骤为: 命令行操作内容: cd /usr/share/applications sudo gedit xxx.desktop 打开需要编辑的文本内容
阅读全文
posted @ 2022-01-26 10:53 LiuChengloong
阅读(327)
评论(0)
推荐(0)
2022年1月25日
Html 转 PDF
摘要: JS 方法 <style> .no-print { cursor:pointer; } @media print { .no-print, .no-print * { display: none !important; } } </style> <script> function printHtml
阅读全文
posted @ 2022-01-25 09:22 LiuChengloong
阅读(48)
评论(0)
推荐(0)
2022年1月12日
Shell 命令合集
摘要: 常用 shell 脚本记录 判断输入参数是否是合理参数 #!/bin/bash port= read -p "请输入 8184|8185: " port echo -e '\n' case $port in '8184' | '8185') echo $port;; *) echo "请输入 818
阅读全文
posted @ 2022-01-12 09:20 LiuChengloong
阅读(72)
评论(0)
推荐(0)
2021年12月29日
golang 相关
摘要: 安装 code-server github code-server 下载 deb 包 deb 安装包 sudo dpkg -i code-server.deb 修改 ~/.config/code-server 中 config.yaml 中 code-server 访问的 bind-addr pas
阅读全文
posted @ 2021-12-29 14:19 LiuChengloong
阅读(31)
评论(0)
推荐(0)
2021年12月16日
Mysql binlog 数据恢复
摘要: Mysql binlog 相关 MySQL 修改密码 sudo -s mysql use mysql ALTER USER root@localhost IDENTIFIED WITH caching_sha2_password BY '123456' MySQL 允许 root 远程登录 mysq
阅读全文
posted @ 2021-12-16 16:26 LiuChengloong
阅读(811)
评论(0)
推荐(0)
2021年12月15日
常用 Linux 命令
摘要: Linux关机,重启 # 关机 shutdown -h now # 重启 shutdown -r now 建立软连接 ln -s /usr/local/jdk1.8/ jdk sshkey # 创建sshkey ssh-keygen -t rsa -C your_email@example.com
阅读全文
posted @ 2021-12-15 10:22 LiuChengloong
阅读(41)
评论(0)
推荐(0)
2021年12月8日
使用火焰图分析Java项目瓶颈
摘要: 对项目进行性能分析,往往需要查看 CPU 耗时,了解瓶颈在哪里。火焰图(flame graph)是性能分析的利器。 我这里使用的是 async-profiler 这个开源项目,项目地址为: https://github.com/jvm-profiling-tools/async-profiler.g
阅读全文
posted @ 2021-12-08 14:22 LiuChengloong
阅读(360)
评论(0)
推荐(0)
2021年12月7日
系统延迟任务设计
摘要: 延迟任务设计思路 入队操作:ZADD KEY timestamp task, 我们将需要处理的任务 按其需要延迟处理时间作为 Score 加入到 ZSet 中。Redis 的 ZAdd 的时间复杂度是 O(logN),N是 ZSet 中元素个数,因此我们能相对比较高效的进行入队操作。 起一个进程定时
阅读全文
posted @ 2021-12-07 15:30 LiuChengloong
阅读(131)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
26
下一页
公告