摘要: 一套操作只要5分钟 vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.150.59 GATEWAY=192.168.150.2 NETMASK=255.255. 阅读全文
posted @ 2021-07-17 16:39 gdut17 阅读(125) 评论(0) 推荐(0)
摘要: 虚拟机 2cpu,2g内存,安装有问题换台新机,或者重启 [root@localhost ~]# uname -r 3.10.0-1160.el7.x86_64 1.安装docker wget https://mirrors.aliyun.com/docker-ce/linux/centos/doc 阅读全文
posted @ 2021-07-17 16:37 gdut17 阅读(268) 评论(0) 推荐(0)
摘要: package main import ( "context" "log" ) func main() { _Handler( "hello", context.Background(), multi([]Interceptor{A, B}...), ) } func A(ctx context.C 阅读全文
posted @ 2021-10-06 00:30 gdut17 阅读(55) 评论(0) 推荐(0)
摘要: 1.当结构体实现了某个接口的所有方法,结构体指针可转换为接口类型 package main import "fmt" type service interface { Get(string) (string, error) Print() } type node struct { } func (n 阅读全文
posted @ 2021-08-31 23:56 gdut17 阅读(207) 评论(0) 推荐(0)
摘要: 这里讨论复用context的情况 package main import ( "context" "fmt" "time" ) func main() { // 传递带超时的上下文告诉阻塞函数 // 超时过后应该放弃它的工作。 ctx, cancel := context.WithTimeout(c 阅读全文
posted @ 2021-08-31 23:45 gdut17 阅读(307) 评论(0) 推荐(0)
摘要: docker镜像 [root@localhost kafka]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE zookeeper latest 50d238989423 2 months ago 269MB wurstmeister/kafk 阅读全文
posted @ 2021-08-30 22:10 gdut17 阅读(193) 评论(0) 推荐(0)
摘要: yum -y install mysql rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm yum -y install mysql-server yum install mysql-devel -y 阅读全文
posted @ 2021-08-29 21:30 gdut17 阅读(26) 评论(0) 推荐(0)
摘要: https://vscode.cdn.azure.cn/stable/3866c3553be8b268c8a7f8c0482c0c0177aa8bfa/vscode-server-linux-x64.tar.gz cd .vscode-server/bin/379476f0e13988d90fab1 阅读全文
posted @ 2021-08-26 21:40 gdut17 阅读(52) 评论(0) 推荐(0)
摘要: 安装MySQL docker run -p 3306:3306 --name mysql02 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 初始化数据库表 mysql -uroot -h127.0.0.1 -p123456 < apolloconfigdb.s 阅读全文
posted @ 2021-08-20 11:49 gdut17 阅读(44) 评论(0) 推荐(0)
摘要: https://github.com/istio/istio/releases/tag/1.7.0 deploy.yaml kind: CustomResourceDefinition apiVersion: apiextensions.k8s.io/v1 metadata: name: adapt 阅读全文
posted @ 2021-08-15 17:34 gdut17 阅读(199) 评论(0) 推荐(0)
摘要: RFC文档及其他 https://httpwg.org/specs/rfc7540.html https://pkg.go.dev/golang.org/x/net/http2#pkg-overview https://www.rfc-editor.org/rfc/rfc7540.html#sect 阅读全文
posted @ 2021-07-20 21:46 gdut17 阅读(191) 评论(0) 推荐(0)
摘要: # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are 阅读全文
posted @ 2021-07-17 23:18 gdut17 阅读(2099) 评论(0) 推荐(0)