会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
东峰叵.com
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页
2024年1月15日
MYSQL的B+Tree索引树高度如何计算
摘要: 前一段被问到一个平时没有关注到有关于MYSQL索引相关的问题点,被问到一个表有3000万记录,假如有一列占8位字节的字段,根据这一列建索引的话索引树的高度是多少? 这一问当时就被问蒙了,平时这也只关注MySQL索引一般都是都是用B+Tree来存储维护索引的,还有一些复合索引的最左匹配原则等等,还真没
阅读全文
posted @ 2024-01-15 09:59 东峰叵,com
阅读(359)
评论(0)
推荐(0)
2024年1月2日
linux下以lvm的方式挂载磁盘到指定目录
摘要: 1.创建PV pvcreate /dev/vdb 2.创建VG分组 vgcreate vg_data /dev/vdb 3.创建逻辑卷 lvcreate -l 100%VG -n lv_data vg_data 4、mkfs(格式化) mkfs.xfs /dev/vg_data/lv_data 5.
阅读全文
posted @ 2024-01-02 10:47 东峰叵,com
阅读(1113)
评论(0)
推荐(0)
2023年12月19日
curl 命令行工具加请求头
摘要: curl -H "Content-Type: application/json" -H "Authorization: Bearer token" url 例: curl -H "Content-Type: application/json" -H "Authorization: Bearer 66
阅读全文
posted @ 2023-12-19 14:32 东峰叵,com
阅读(141)
评论(0)
推荐(0)
2023年11月16日
504 与413错误处理
摘要: 报 504 错误,我们可以从 ngxin 上找找看是否是 nginx 访问超时导致的错误。 proxy_connect_timeout 1000; proxy_send_timeout 1000; proxy_read_timeout 1000; send_timeout 1000; 如果还是不行,
阅读全文
posted @ 2023-11-16 18:18 东峰叵,com
阅读(46)
评论(0)
推荐(0)
2023年11月15日
WARNING: image with reference cucker/get_command_4_run_container was found but does not match the specified platform: wanted linux/arm64/v8, actual: linux/amd64解决
摘要: 这样的错误是因为在下载镜像时没有指定平台 docker pull <镜像名称> --platform linux/arm64
阅读全文
posted @ 2023-11-15 20:05 东峰叵,com
阅读(335)
评论(0)
推荐(0)
Docker 查看已启动容器当时的运行命令与参数
摘要: 方案一:docker ps -a --no-trunc 方案二:docker inspect 方案三:get_command_4_run_container(推荐) 1.安装下载镜像 docker pull cucker/get_command_4_run_container 2.使用命令查看启动命
阅读全文
posted @ 2023-11-15 19:58 东峰叵,com
阅读(282)
评论(0)
推荐(0)
SpringBoot 配置文件内容加密
摘要: 1.引入pom <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.3</version> </depend
阅读全文
posted @ 2023-11-15 14:12 东峰叵,com
阅读(68)
评论(0)
推荐(0)
2023年11月14日
查询mysql数据量,表数量脚本
摘要: # 查询数据库中每个库的数据量 SELECT table_schema AS "Database", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP B
阅读全文
posted @ 2023-11-14 11:25 东峰叵,com
阅读(37)
评论(0)
推荐(0)
2023年10月9日
docker安装clickhouse
摘要: # 创建相关配置目录mkdir -p /data/clickhouse/datamkdir -p /data/clickhouse/confmkdir -p /data/clickhouse/log # 拉取镜像# 下载最新版本clickhousedocker pull clickhouse/cli
阅读全文
posted @ 2023-10-09 15:16 东峰叵,com
阅读(106)
评论(0)
推荐(0)
2023年9月27日
使用sealos安装k8s
摘要: # 获取sealos命令行工具wget https://github.com/labring/sealos/releases/download/v4.3.3/sealos_4.3.3_linux_amd64.tar.gz \ && tar zxvf sealos_4.3.3_linux_amd64.
阅读全文
posted @ 2023-09-27 09:18 东峰叵,com
阅读(297)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
11
下一页
公告