01 2022 档案
摘要:[root@k8-master ~]# cat deployment1.yaml apiVersion: apps/v1kind: Deploymentmetadata: name: nginx-deployment labels: app: nginxspec: replicas: 2 selec
阅读全文
摘要:参考链接:https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/labels/ [root@k8-node ~]# cat dep_lab.yaml apiVersion: apps/v1kind: Deployme
阅读全文
摘要:关闭防火墙: $ systemctl stop firewalld $ systemctl disable firewalld 关闭selinux: $ sed -i 's/enforcing/disabled/' /etc/selinux/config # 永久 $ setenforce 0 #
阅读全文
摘要:MySQL8应该使用transaction_isolation,tx_isolation被弃用。 重新登录生效。 在RC隔离级别,在会话1窗口commit 的数据在会话2窗口可以执行查询到。
阅读全文
摘要:mysql> show variables like '%commit%'; + + + | Variable_name | Value | + + + | autocommit | OFF | | innodb_commit_concurrency | 0 | | innodb_flush_log
阅读全文
摘要:执行计划作用是如下: 表的读取顺序 数据读取操作的操作类型 哪些索引可以使用 哪些索引被实际使用 表之间的引用 每张表有多少行被优化器查询 1.1 id select查询的序列号,包含一组数字,表示查询中执行select子句或者操作表的顺序 id号分为三种情况: 1、如果id相同,那么执行顺序从
阅读全文