摘要: 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是吧 阅读(50) 评论(0) 推荐(0) 编辑
摘要: MemTotal=$(awk '/MemTotal/{print $2}' /proc/meminfo ) # MemTotal=$(echo "scale=2;$MemTotal/1000/1000"|bc) CpuTotal=$(awk '/processor/{core++} END{prin 阅读全文
posted @ 2024-09-10 08:20 mingtian是吧 阅读(3) 评论(0) 推荐(0) 编辑
摘要: salt centos镜像源 https://archive.repo.saltproject.io/yum/redhat/7/x86_64/3000/ https://repo.saltproject.io/salt/py3/redhat/7/x86_64/3006/ 麒麟镜像源 https:// 阅读全文
posted @ 2024-08-08 16:26 mingtian是吧 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 开源 https://obsproject.com/welcome 阅读全文
posted @ 2024-06-17 17:38 mingtian是吧 阅读(3) 评论(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是吧 阅读(9) 评论(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是吧 阅读(5) 评论(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是吧 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 修改网卡名称为 eth0 ifnames=0 biosdevname=0 更新yum源 curl -q -# https://mirrors.aliyun.com/repo/Centos-7.repo >/etc/yum.repos.d/CentOS-Base.repo yum clean all 阅读全文
posted @ 2024-06-05 17:37 mingtian是吧 阅读(7) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/li150dan/p/15603149.html 作为 Windows 服务运行# 为了将 VictoriaMetrics 作为 Windows 服务运行,需要为 WinSW 创建服务配置,然后根据以下指南将其安装为服务: 创建服务配置: <servi 阅读全文
posted @ 2024-06-04 22:36 mingtian是吧 阅读(8) 评论(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是吧 阅读(4) 评论(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是吧 阅读(3) 评论(0) 推荐(0) 编辑