胸
小菜菜
当岁月都已失去,偶然与过往相遇,我们还能哼唱出年少的旋律。
主页 帖子 博客广场 站点首页
最新博文
Elasticsearch index.blocks.read_only_allow_delete
ES数据库发现磁盘将要写满之后,会尝试将所有的index设置index.blocks.read_only_allow_delete为true,会导致数据无法写入。 可以通过以下命令将所有的index配置改为fal...
Linux 查找目录中包含特定字符串的文件
使用grep命令。 grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R 表示递归查找 -n 显示查找到字符串所在文件行号 -w 表示完整匹配 -l (lower-case L) 只显示匹...
client_loop: send disconnect: Broken pipe
某天突然发现自己的mac尝试ssh访问别的服务器的时候,会出这个错误。 查了很多资料,好像都匹配的关键词 broken pipe,让改 ServerAliveInterval ,很明显我的应该不是这...
Nexus空间清理
过完年刚回来,同事反馈公司搭建的maven私服无法访问了。 故障定位 登录到服务器看了下,日志里面有磁盘空间满的提示(java.io.IOException: No space left on device)。...
windows的Linux子系统配置让Windows启动时自动启动
Set up sshd on distro of choice. Ensure it works (firewall set up properly, etc.) when launched manually Ensure that the distro which will run sshd is the de...
使用Let’s Encrypt和dnspod来自动获取ssl证书
背景 一直使用let’s encrypt的免费通配符域名,很爽。 最近发现域名要到期了,准备续订域名,然后收到个提示 Skipping bootstrap because certbot-auto is deprecated o...
virtual-key-codes
虚拟键编码映射表 The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used ...
mac系统创建上网代理服务器
Using Docker Stable Version from Docker Hub ❯ docker run -it -p 8899:8899 --rm abhinavsingh/proxy.py:latest Build Development Version Locally ❯ git clone htt...
canvas 让物体围绕自己中心点旋转
canvas的旋转(rotate)是绕画布的左上角(0,0)开始旋转的,所以直接旋转无法得到想要的效果。 旋转的步骤: 1. 将(0, 0)偏移到物体的中心: ctx.translate(centerX, cent...
NODEJS连ldap认证
使用ldap-authentication库https://www.npmjs.com/package/ldap-authentication 官方样例代码: let authenticated = await authenticate({ ldapOpts: { url: 'ldap://l...
© 2026 小菜菜 · Powered by 678PDF