摘要: 搞网站三部曲 搞域名 cloudflare搞dns 搞SSL证书 nginx反向代理(if needed) 打开localhost上的web服务(if needed) 坑: 用cloudflare来做dns解析,cloudflare会缓存静态资源。所以源文件变了也不一定能反映到静态网站上,需要手动清 阅读全文
posted @ 2024-04-03 19:02 peterzh6 阅读(5) 评论(0) 推荐(0) 编辑
摘要: `package org.example; import org.openjdk.jmh.annotations.*; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.ReentrantLock; @St 阅读全文
posted @ 2024-04-01 00:07 peterzh6 阅读(1) 评论(1) 推荐(0) 编辑
摘要: 修改rocketmq/conf中broker.conf,增加 autoCreateTopicEnable=true brokerIP1 = 127.0.0.1 namesrvAddr = 127.0.0.1:9876 进入rocketmq/bin start mqnamesrv.cmd Start- 阅读全文
posted @ 2024-04-01 00:06 peterzh6 阅读(15) 评论(0) 推荐(0) 编辑
摘要: ①. CompletableFuture概述 ②. CompletableFuture创建方式 ③. CompletableFuture API ①. 获得结果和触发计算(get、getNow、join、complete) ②. 对计算结果进行处理(thenApply、handle) ③. 对计算结 阅读全文
posted @ 2024-03-24 22:22 peterzh6 阅读(7) 评论(0) 推荐(0) 编辑
摘要: MySQL 讲讲mysql的索引为什么要用B+树? B+树为什么更矮胖? 有序性: B+树是一种有序的树形结构,可以快速定位和范围查询数据。在B+树中,所有的叶子节点都按照键值的大小顺序连接在一起,这使得范围查询变得高效。同时,有序性也使得B+树在范围查询、排序和分组等操作上更加高效。 平衡性: B 阅读全文
posted @ 2024-03-24 22:05 peterzh6 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Redis Redis常规八股(Redis common interview questions and concepts): Redis是什么?(What is Redis?):Redis是一个开源的内存数据存储系统,可以用作数据库、缓存和消息中间件。 Redis的特点是什么?(What are 阅读全文
posted @ 2024-03-24 22:01 peterzh6 阅读(4) 评论(0) 推荐(0) 编辑
摘要: My first Blog 阅读全文
posted @ 2024-03-24 21:57 peterzh6 阅读(3) 评论(1) 推荐(0) 编辑