摘要:
gzip /etc/yum.repos.d/* # base curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-7-anon.repo # epel sed 阅读全文
摘要:
背景:k8s集群是使用的calico IPIP模式的网络。 1、通过sar查看异常的网口 # 没秒统计一次,按ctrl + c结束 sar -n DEV 1 上一个步骤能看到是哪个网络接口的流量异常。 然后根据获取到的网口名称。过滤查找到是哪个pod IP在过滤出pod route -n | gre 阅读全文
摘要:
Ubuntu 24.04 安装配置 1、安装基本优化 1.1 关闭cloud-init进程 cloud init进程在云计算中,开机的时候会去访问一个固定的IP地址,来获取主机的元数据信息,比如初始化的脚本,重置操作系统密码等功能。单独装不需要可以关闭。 echo 'network: {config 阅读全文
摘要:
cat k8s-events-elasticsearch.yaml # 采集k8s事件(events)到elasticsearch # https://github.com/AliyunContainerService/kube-eventer apiVersion: apps/v1 kind: D 阅读全文
摘要:
# redis7.2 安装部署 https://redis.io/download/ https://github.com/redis/redis/tree/7.2 wget https://github.com/redis/redis/archive/7.2.3.tar.gz redis-7.2. 阅读全文
摘要:
mysqlbinlog 命令行 常见的选项 mysqlbinlog常见的选项有一下几个: a、--start-datetime:从二进制日志中读取指定等于时间戳或者晚于本地计算机的时间。 b、--stop-datetime:从二进制日志中读取指定小于时间戳或者等于本地计算机的时间 取值和上述一样。 阅读全文
摘要:
1、安装acme.sh curl https://get.acme.sh | sh -s email=business@kai.com ~]# ls /root/.acme.sh/ account.conf acme.sh acme.sh.csh acme.sh.env deploy dnsapi 阅读全文
摘要:
# gbk转成utf-8 iconv -f GB2312 -t UTF-8//IGNORE ecology -o ecology.log # linux到windows互转 dos2unix unix2dos 阅读全文
摘要:
Haproxy 安装配置 官方文档参考https://docs.haproxy.org/ 四层的haproxy不支持把客户端真实的IP地址传到后端服务器。 1、安装 1.1 二进制编译安装。 https://github.com/haproxy/haproxy/releases/tag/v2.8.0 阅读全文
摘要:
redis 生产哨兵的测试 1、helm release的版本 helm repo add bitnami https://charts.bitnami.com/bitnami helm pull bitnami/redis --version 18.2.2 sentinel-redis]# ls 阅读全文