上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 44 下一页
摘要: 配置文件my.cnf vim my.cnf #my.cnf [client] port = 3306 socket = /tmp/mysql3306.sock [mysql] prompt="\\u@\\h [\\d]>" #pager="less -i -n -S" #tee=/opt/mysql 阅读全文
posted @ 2022-03-19 21:50 beawh 阅读(86) 评论(0) 推荐(0)
摘要: 硬件配置信息 检查项 操作命令 服务器名称 hostname 服务器型号 dmidecode |grep "Product Name" CPU cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 内存 cat /proc/meminfo 磁盘 阅读全文
posted @ 2022-03-19 00:03 beawh 阅读(858) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-18 23:42 beawh 阅读(48) 评论(0) 推荐(0)
摘要: mysqladmin extended-status(可以使用ext代替)。 加上参数-r(--relative),就可以看到各个指标的差值,配合参数-i(--sleep)就可以指定刷新的频率,那么就有如下命令: mysqladmin -uroot -pmysql123 ext -i 5 | awk 阅读全文
posted @ 2022-02-16 14:21 beawh 阅读(96) 评论(0) 推荐(0)
摘要: 1、什么原因可能导致主从同步延时,怎么判断,怎么处理? 主从同步延时的原因:(1)从库的硬件配置没有主库好 (2)网络抖动导致IO线程复制延时(3)主库对没有索引的大表的列进行删除或者修改操作,主库上存在大事务怎么判断主从延时:(1)通过show slave status命令查看seconds_be 阅读全文
posted @ 2022-02-15 15:44 beawh 阅读(381) 评论(0) 推荐(0)
摘要: mysql> select * from tx1+ + + +| id | c1 | c2 |+ + + +| 1 | aaa | aaa2 || 2 | bbb2 | bbb2 || 3 | ccc5 | ccc2 || 4 | ddd | ddd4 || 8 | hhh | hhhh8 |+ + 阅读全文
posted @ 2022-02-14 14:55 beawh 阅读(305) 评论(0) 推荐(0)
摘要: centos启动过程中卡住了 1、重启服务器,在选择内核界面使用上下箭头移动 2、选择内核并按“e” 3、移动光标到红色区域找到改行 4 修改如下 这里要删除掉rhgb quiet,如下图 吧ro改成rw 最后面添加init=/bin/bash 5、使用“ctrl + x” 来重启服务器就可以了,重 阅读全文
posted @ 2022-02-09 14:40 beawh 阅读(310) 评论(0) 推荐(0)
摘要: [root@k8-master ~]# cat deployment1.yaml apiVersion: apps/v1kind: Deploymentmetadata: name: nginx-deployment labels: app: nginxspec: replicas: 2 selec 阅读全文
posted @ 2022-01-26 17:25 beawh 阅读(98) 评论(0) 推荐(0)
摘要: 参考链接:https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/labels/ [root@k8-node ~]# cat dep_lab.yaml apiVersion: apps/v1kind: Deployme 阅读全文
posted @ 2022-01-25 15:42 beawh 阅读(50) 评论(0) 推荐(0)
摘要: 关闭防火墙: $ systemctl stop firewalld $ systemctl disable firewalld 关闭selinux: $ sed -i 's/enforcing/disabled/' /etc/selinux/config # 永久 $ setenforce 0 # 阅读全文
posted @ 2022-01-24 17:41 beawh 阅读(67) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 44 下一页