Loading

上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 忽略某些库 MySQL通过以下两个参数来控制某些库是否写入binlog。 --binlog-do-db=db_name --binlog-ignore-db=db_name --binlog-do-db 指定的库名,其内部表数据修改都会写入binlog。 --binlog-ignore-db 指定的 阅读全文
posted @ 2022-07-22 11:51 亚里士多智 阅读(180) 评论(0) 推荐(0)
摘要: 创建步骤 1.创建分区 2.创建PV 3.创建VG 4.创建LV 5.格式化及挂载 创建分区 使用分区工具(如fdisk等)创建LVM分区。 创建PV $ pvcreate /dev/sdb5 #将每个分区转换成PV Physical volume "/dev/sdb5" successfully 阅读全文
posted @ 2022-06-13 17:02 亚里士多智 阅读(158) 评论(0) 推荐(0)
摘要: #查看是否支持扩容 $ kubectl get sc ** -o yaml ··· allowVolumeExpansion: true #拥有该字段表示允许动态扩容 ··· #找到需要扩容的pvc $ kubectl get pvc NAME STATUS VOLUME CAPACITY ACCE 阅读全文
posted @ 2022-06-01 18:19 亚里士多智 阅读(357) 评论(0) 推荐(0)
摘要: 因某些修改操作,导致系统重启后无法正常启动,此时需要进入救援模式,修复错误配置即可。 **1、**重启系统后,进入grup引导页面,选中第一项然后按“e” 进入编辑模式: **2、**通过↓键找到linux16开头行,如所示“ro”处(ro表示只读),将ro替换为rw init=/sysroot/b 阅读全文
posted @ 2022-03-14 11:35 亚里士多智 阅读(805) 评论(0) 推荐(0)
摘要: vi /etc/passwd 按i键进入编辑状态 修改第1行第1个root为新的用户名 按esc键退出编辑状态,并输入:x保存并退出 vi /etc/shadow 按i键进入编辑状态 修改第1行第1个root为新的用户名 按esc键退出编辑状态,并输入:x!强制保存并退出 阅读全文
posted @ 2022-03-11 18:16 亚里士多智 阅读(790) 评论(0) 推荐(0)
摘要: 1、升级openssl yum install perl wget https://goodrain-delivery.oss-cn-hangzhou.aliyuncs.com/fuzhoushuchan/openssl-1.1.1g.tar.gz && tar xvf openssl-1.1.1g 阅读全文
posted @ 2022-03-11 17:57 亚里士多智 阅读(445) 评论(0) 推荐(0)
摘要: 在返回index.html配置中加入add_header X-Frame-Options DENY; location / {undefined root /data/nginx/html/dist/; index index.html; add_header X-Frame-Options DEN 阅读全文
posted @ 2022-03-08 09:53 亚里士多智 阅读(353) 评论(0) 推荐(0)
摘要: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 阅读全文
posted @ 2022-02-11 11:36 亚里士多智 阅读(71) 评论(0) 推荐(0)
摘要: Kubernetes 的节点可以按照 Capacity 调度。默认情况下 pod 能够使用节点全部可用容量。 这是个问题,因为节点自己通常运行了不少驱动 OS 和 Kubernetes 的系统守护进程。 除非为这些系统守护进程留出资源,否则它们将与 pod 争夺资源并导致节点资源短缺。 未设置资源预 阅读全文
posted @ 2022-01-24 15:17 亚里士多智 阅读(952) 评论(0) 推荐(0)
摘要: 批量删除Evicted状态pod kubectl -n gitee get pods | grep Evicted |awk '{print$1}'|xargs kubectl -n gitee delete po 脚本 批量删除pod sh pod.sh ImagePullBackOff #!/b 阅读全文
posted @ 2022-01-20 18:03 亚里士多智 阅读(309) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页