上一页 1 ··· 65 66 67 68 69

2022年3月5日

tcpdump

摘要: 安装tcpdump 通过yum命令来直接安装(推荐) yum install tcpdump -y 通过源码来安装tcpdump # 登录http://www.tcpdump.org/,下载源码包。 # 下载tcpdump-4.9.3.tar.gz和libpcap-1.9.1.tar.gz。 # 安 阅读全文

posted @ 2022-03-05 09:17 王景迁 阅读(3618) 评论(0) 推荐(0)

2022年1月24日

Channel的典型应用场景

摘要: 消息交流(生产者和消费者) 一个goroutine可以安全地往Channel中塞数据,另外一个goroutine可以安全地从Channel中读取数据,goroutine就可以安全地实现信息交流了,即生产者和消费者模式。工作池是一组等待任务并处理任务的协程。 1 package main 2 3 im 阅读全文

posted @ 2022-01-24 08:33 王景迁 阅读(332) 评论(0) 推荐(0)

2022年1月23日

git

摘要: 提交本地仓库 git init git remote add origin git@xxx.git git add . git commit -m "xxx" git push -u origin master 管理分支和tag # 查看本地git分支 git branch # 删除本地分支 git 阅读全文

posted @ 2022-01-23 22:06 王景迁 阅读(154) 评论(0) 推荐(0)

2022年1月21日

k8s https证书认证

摘要: 证书握手时会验证客户端访问域名或者ip是否满足SAN。具体来说,grpc是tlsConfig中的server_name,https是TlsClientConfig中的ServerName。 curl --connect-to 'www.baidu.com:443:180.101.49.44:443' 阅读全文

posted @ 2022-01-21 18:48 王景迁 阅读(1854) 评论(0) 推荐(0)

2022年1月18日

不用CNI插件,打通容器网络

摘要: 传统模式下单节点容器网络 在不同ns中创建网卡并对接公共网桥 1 # centos8 安装brctl命令 2 rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/bridge-utils-1.5-9.el7.x86_64.rpm 阅读全文

posted @ 2022-01-18 22:52 王景迁 阅读(180) 评论(0) 推荐(0)

2022年1月12日

安装与重装k8s 1.15.0

摘要: CentOS 7.6系统配置 node1节点操作脚本,node2节点修改主机名名字,其他相同所有节点执行以下脚本 # 修改主机名 echo "node1" > /etc/hostname hostnamectl set-hostname node1 # 安装nslookup和ifconfig # n 阅读全文

posted @ 2022-01-12 21:03 王景迁 阅读(603) 评论(0) 推荐(0)

上一页 1 ··· 65 66 67 68 69

导航