会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一任阶前、点滴到天明
首页
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
26
下一页
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
阅读(34)
评论(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
阅读(818)
评论(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
阅读(45)
评论(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
阅读(369)
评论(0)
推荐(0)
2021年12月7日
系统延迟任务设计
摘要: 延迟任务设计思路 入队操作:ZADD KEY timestamp task, 我们将需要处理的任务 按其需要延迟处理时间作为 Score 加入到 ZSet 中。Redis 的 ZAdd 的时间复杂度是 O(logN),N是 ZSet 中元素个数,因此我们能相对比较高效的进行入队操作。 起一个进程定时
阅读全文
posted @ 2021-12-07 15:30 LiuChengloong
阅读(135)
评论(0)
推荐(0)
系统一级缓存设计
摘要: 要设计一个高性能的系统,那么缓存肯定是一个绕不开的话题,合理使用缓存可以使得系统变得更“快”,响应时间也能大大减少。 那么如何设计一个缓存呢,这里将我系统现有的一个缓存功能记录下来,方便以后使用。这是一个简单的 K-V 的本地缓存,使用 Caffeine 作为具体的本地缓存框架,并且可以方便的更换底
阅读全文
posted @ 2021-12-07 14:30 LiuChengloong
阅读(90)
评论(0)
推荐(0)
2021年12月3日
ubuntu 更换源
摘要: ### 备份源 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak ### 新增源 sudo vim /etc/apt/sources.list ### 20.04 阿里云: deb http://mirrors.aliyun.com/ub
阅读全文
posted @ 2021-12-03 08:47 LiuChengloong
阅读(407)
评论(0)
推荐(0)
2021年11月17日
ES root用户启动失败can not run elasticsearch as root
摘要: es 因为安全问题拒绝使用 root 用户启动 # groupadd es # useradd es -g es -p 密码 # -g 指定组 -p 指定密码 # chown -R es:es elasticsearch/ # -R : 处理指定目录下的所有文件 # su es # cd elast
阅读全文
posted @ 2021-11-17 13:17 LiuChengloong
阅读(463)
评论(0)
推荐(0)
2021年11月15日
安装 Nginx
摘要: 安装编译环境 使 nginx 支持 http rewrite 模块/ssl 模块/ zlib # sudo yum -y install gcc gcc-c++ pcre pcre-devel openssl openssl-devel zlib zlib-devel gd gd-devel # s
阅读全文
posted @ 2021-11-15 16:30 LiuChengloong
阅读(58)
评论(0)
推荐(0)
2021年11月12日
Piping Server – 支持 curl 的轻量级开源文件传输工具
摘要: Piping 是一个轻量级的开源文件传输工具,可自托管,支持使用 curl、wget 下载,可更广泛的在无浏览器的设备上使用。 可以用于不同设备间传输文本或者文件,或者在不同用户间传递资料等场景。 Github 地址:https://github.com/nwtgck/piping-server c
阅读全文
posted @ 2021-11-12 13:17 LiuChengloong
阅读(451)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
26
下一页
公告