摘要: 3节点master(master1、master2、master3),备份文件路径为脚本默认备份目录,按节点分别复制对应命令执行,严格遵循顺序,零业务中断。 第一步:所有 master 节点统一执行(停止组件+备份旧数据) # 1. 配置etcdctl环境变量 export ETCDCTL_API= 阅读全文
posted @ 2026-03-30 17:49 一窗明月半帘风 阅读(1) 评论(0) 推荐(0)
摘要: 1. 常用 手动执行一次备份:./etcd-ops.sh backup 设置每日01:00定时备份:./etcd-ops.sh crontab 检查etcd集群健康:./etcd-ops.sh health 查询常用数据(命名空间、Pod等):./etcd-ops.sh query 清理7天前备份文 阅读全文
posted @ 2026-03-30 17:47 一窗明月半帘风 阅读(2) 评论(0) 推荐(0)
摘要: 1.对目录下的文件进行分类,并根据文件后缀,将相应文件移动或拷贝至对应目录 import sys import os import shutil def get_file_extension(filename): _, file_extension = os.path.splitext(filena 阅读全文
posted @ 2024-08-24 09:33 一窗明月半帘风 阅读(78) 评论(0) 推荐(0)
摘要: 1. Python django 添加自定义标签过滤器失败No module named 'templatetags' django.template.library.InvalidTemplateLibrary: Invalid template library specified. Import 阅读全文
posted @ 2024-07-15 20:03 一窗明月半帘风 阅读(237) 评论(0) 推荐(0)
摘要: 1.安装模块 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple huaweicloudsdkcdn pip install -i https://pypi.tuna.tsinghua.edu.cn/simple datetime 2.获取 阅读全文
posted @ 2024-05-22 14:35 一窗明月半帘风 阅读(146) 评论(0) 推荐(0)
摘要: 现象:systemctl start httpd 启动超时,提示信息如下: Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.ser 阅读全文
posted @ 2024-03-06 08:29 一窗明月半帘风 阅读(1500) 评论(0) 推荐(0)
摘要: 下载 官网路径:https://dlcdn.apache.org/zookeeper/ 单机部署 #解压 tar -zxf apache-zookeeper-3.8.1.tar.gz #进入配置文件目录 cd apache-zookeeper-3.8.1/conf #拷贝模板文件 cp -a zoo 阅读全文
posted @ 2023-07-24 14:35 一窗明月半帘风 阅读(66) 评论(0) 推荐(0)
摘要: 1. redis启停脚本,redis_start_stop.sh #!/bin/bash REDIS_PORT=6379 SENTINEL_PORT=26379 IP=`(ifconfig|grep inet|egrep -v "127.0.0.1"|awk '{print $2}')` redis 阅读全文
posted @ 2023-07-11 14:36 一窗明月半帘风 阅读(74) 评论(0) 推荐(0)
摘要: 初稿。。。 1.下载 https://downloads.mysql.com/archives/community/ 选择对应版本->选择 source code ->系统版本一定要选all ->拉至最下方-选择mysql-boost-8.0.xx.tar.gz(不下载带有boost的压缩包,需自行 阅读全文
posted @ 2023-07-11 13:54 一窗明月半帘风 阅读(1682) 评论(0) 推荐(0)
摘要: 在gitlab上构建Webhooks,测试报错Hook executed successfully but returned HTTP 403。具体如下图所示: 解决办法: 1. 打开gitlab->Admin Area->Settings->Network->Outbound requests E 阅读全文
posted @ 2021-02-03 16:25 一窗明月半帘风 阅读(2033) 评论(3) 推荐(0)