linux开启tcp_tw_recycle引发的问题总结
linux开启tcp_tw_recycle引发的问题总结
存在场景 服务端 cat /etc/sysctl.conf ... net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_timestamps = 1 ... 客户端 k8s集群pod中请求服务端的http接口 客户端host抓包 tcpdump -i bo ...
ansible 超详细讲解[值得收藏]
ansible 超详细讲解[值得收藏]
ansible安装 yum install python39 -y pip3.9 install ansible # 查看版本 ansible --version ansible配置 mkdir /etc/ansible # 此处根据安装的 ansible 版本进行修改 # wget -O ...
netem 模拟丢包乱序延迟
netem 模拟丢包乱序延迟
安装工具 # centos yum install iproute-tc -y # debian apt-get install iproute2 使用方法 帮助信息 tc -h tc qdisc help 查看配置 tc qdisc show dev bond0 删除配置 t ...
Nginx 使用 logrotate 滚动日志
Nginx 使用 logrotate 滚动日志
安装logrotate 一般系统已经安装了logrotate, 如果没有安装使用一下命令安装 yum install logrotate 入口文件 /etc/cron.daily/logrotate 使用crontab每天执行一次 配置文件 主配置文件/etc/logrotate.co ...
centos 禁止更新内核
centos 禁止更新内核
# 禁止更新内核等 if [ "$(grep -c "exclude=kernel" /etc/yum.conf)" -eq '0' ]; then sed -i '$a exclude=kernel* centos-release* initscripts* gcc-*' /etc/yum ...
keepalived 高可用(主备切换)
keepalived 高可用(主备切换)
安装keepalived(ALL) yum install -y keepalived 配置服务(ALL) cat /etc/keepalived/keepalived.conf global_defs { router_id test001 #标识,只是一个名称 s ...
k8s集群报错之You must be logged in to the server (Unauthorized)
k8s集群报错之You must be logged in to the server (Unauthorized)
这是个常见的错误,一般是证书更新后,没有即时更新kubectl配置导致的。 error: You must be logged in to the server (Unauthorized) 解决方法 cp -i /etc/kubernetes/admin.conf $HOME/.kube/ ...
sshd禁止密码登录
sshd禁止密码登录
修改配置 vim /etc/ssh/sshd_config # 禁止密码登录 PasswordAuthentication no # 确保秘钥登录打开 PubkeyAuthentication yes 重启服务 # 这里建议reload systemctl reload sshd.ser ...
centos7安装高可用k8s集群
centos7安装高可用k8s集群
一、环境准备 1 主机准备 主机 Ip主机名主功能10.200.20.116master01etcd,apiserver,controller-manager,scheduler,docker,proxy10.200.20.117master02etcd,apiserver,controller ...
实战之给博客加全文索引
实战之给博客加全文索引
卸载 systemctl stop mariadb mv /etc/my.cnf /etc/my.cnf.bak yum remove mariadb mariadb-server 升级 cat /etc/yum.repos.d/mariadb.repo # MariaDB 10.5 Ce ...
zhr

张文兵

90后程序员

 湖南 - 长沙



友情链接