摘要: etcd 是CoreOS开发的分布式k-v 数据库。通过raft算法选举主节点 第一节集群安装 | 主机名 | 主机ip | etcd节点名称 | 版本 | | | | | | | etcd-1.k8s.com | 10.4.7.200/24 | etcd-1 | v.13.5.0 | | etcd 阅读全文
posted @ 2021-10-26 15:42 mingtian是吧 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 开源 https://obsproject.com/welcome 阅读全文
posted @ 2024-06-17 17:38 mingtian是吧 阅读(1) 评论(0) 推荐(0) 编辑
摘要: [root@master01 ~]# iperf3 -c 10.4.7.21 -p 8888 -b 1000M Connecting to host 10.4.7.21, port 8888 [ 4] local 10.4.7.231 port 41814 connected to 10.4.7.2 阅读全文
posted @ 2024-06-13 14:58 mingtian是吧 阅读(3) 评论(0) 推荐(0) 编辑
摘要: openresty 安装依赖 #GCC (gun compiler collection) #gcc-c++ c++ 编译器 yum install gcc gcc-c++ -y # rewrite模块需要 pcre (perl compatible regular expression per 兼 阅读全文
posted @ 2024-06-09 11:52 mingtian是吧 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 在Nginx中,可以使用$http_user_agent变量来获取请求的User-Agent头,然后基于这个头的值来决定如何转发请求。 实现方式一: http { map $http_user_agent $backend { default http://backend3; ~*Chrome ht 阅读全文
posted @ 2024-06-09 11:14 mingtian是吧 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 安装python3.6(更高版本对openssl版本有要求centos7可能build失败) curl -q# https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz -o Python-3.6.9.tar.xz tar xf Pyth 阅读全文
posted @ 2024-06-05 17:42 mingtian是吧 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 更新yum源 curl -q -# https://mirrors.aliyun.com/repo/Centos-7.repo >/etc/yum.repos.d/CentOS-Base.repo yum clean all && yum makecache yum -y install epel- 阅读全文
posted @ 2024-06-05 17:37 mingtian是吧 阅读(2) 评论(0) 推荐(0) 编辑
摘要: /li150dan/p/15603149.html 阅读全文
posted @ 2024-06-04 22:36 mingtian是吧 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 网络配置格式 graph LR A[配置格式] A1[cniVersion] A2[name] A3[plugins] A4[disableCheck] A --> A1 A --> A2 A --> A3 A -->|大多数cni中没有配置这块| A4 A31(type) A32(capabili 阅读全文
posted @ 2024-05-03 13:57 mingtian是吧 阅读(3) 评论(0) 推荐(0) 编辑
摘要: mkdir /usr/local/openresty/nginx/conf/ssl cd /usr/local/openresty/nginx/conf/ssl openssl genrsa -out server.key 2048 openssl req -new -key server.key 阅读全文
posted @ 2024-04-29 19:02 mingtian是吧 阅读(2) 评论(0) 推荐(0) 编辑
摘要: raid #!/bin/bash # describe: use all free disk to create raid10 # 创建一个未使用磁盘的数组 ls_disk(){ for disk in $(lsblk|awk '/disk/{print $1}');do mount|grep -q 阅读全文
posted @ 2024-04-25 12:29 mingtian是吧 阅读(4) 评论(0) 推荐(0) 编辑