上一页 1 2 3 4 5 6 7 ··· 34 下一页
摘要: 1、下载 git clone https://github.com/name5566/leafserver 2、设置GOPATH GOPATH默认为全局设定 也可设置项目独有的GOPATH 命令行下设置 set GOPATH=C:\Users\Administrator\goset GOPROXY= 阅读全文
posted @ 2022-09-07 11:11 会飞的斧头 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 重新指定 delve ,步骤如下: 1、git clone https://github.com/go-delve/delve.git 2、cd delve mkdir bin go build -o bin\dlv.exe cmd\dlv\main.go 3、进入goland, Help->Edi 阅读全文
posted @ 2022-08-23 15:26 会飞的斧头 阅读(1823) 评论(1) 推荐(1) 编辑
摘要: 借一张图 1、下载 https://github.com/etcd-io/etcd git clone https://github.com/etcd-io/etcd.git 2、编译 进入etcd目录, mac/linux下, make clean && make build 在etcd/bin目 阅读全文
posted @ 2022-08-17 13:09 会飞的斧头 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 1、下载 http://gitblit.github.io/gitblit/ https://github.com/gitblit/gitblit/releases/download/v1.9.3/gitblit-1.9.3.zip 2、解压 gitblit-1.9.3.zip 3、编辑 defau 阅读全文
posted @ 2022-08-13 06:21 会飞的斧头 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1、业务结构——模块化、集群 负载均衡、路由调度 2、模块化拆分 3、资源分层治理 在接口层可以做诸多防护、统计、熔断机制 4、数据库 分库分表、主从模式、读写分离。 水平分表、垂直分表。 用中间件,如 mycat 阅读全文
posted @ 2022-08-12 16:32 会飞的斧头 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-03 12:23 会飞的斧头 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Netty中使用Reactor三种模式: Reactor 单线程模式 EventLoopGroup eventGroup = new NioEventLoopGroup(1); ServerBootstrap serverBootstrap = new ServerBootstrap(); serv 阅读全文
posted @ 2022-08-03 10:18 会飞的斧头 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 一、初次安装过程 1、环境准备 go开发环境 https://go.dev/dl/ java8开发环境 本文所用环境 MacBook-Pro 2、Terry-Mao/goim 是一个支持集群的im及实时推送服务。 GOIM源码地址 https://github.com/Terry-Mao/goim 阅读全文
posted @ 2022-08-01 13:42 会飞的斧头 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: 平滑加权轮询算法 上面的加权轮询算法会导致连续的调用同一台服务器,此时请求分发显得很不均衡,总是需要按权重值连续调用完同一台服务器之后才会调用接下来的服务器。 这时候就需要平滑加权算法。 假设服务器A配置权重为7,服务器B的配置权重为2,服务器配置权重为1。 总的权重值为10。平滑加权轮询的调度如下 阅读全文
posted @ 2022-07-26 16:14 会飞的斧头 阅读(847) 评论(0) 推荐(0) 编辑
摘要: Runnable.java @FunctionalInterface public interface Runnable { /** * When an object implementing interface {@code Runnable} is used * to create a thre 阅读全文
posted @ 2022-07-20 20:25 会飞的斧头 阅读(26) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 34 下一页