python3学习手册修饰符以“可选项”列出,需要时勾选相应修饰项即可 ★正则表达式的修饰符 i ignore,匹配时不区分大小写 re.I g global,全局匹配,查找所有的匹配项 m mul� line,多行匹配,使得边界符^和$匹配每一 行的开头和结尾,而不是整个字符串 re.M s 默认时 .点号 匹配除了换行符\n之外的所有字 符,加上s修饰后,.点号包含换行符 re.S re stderr = client1.exec_command("ls -l") # 执行一次性命令 # stdout.read() #返回bytes # stdout.readlines() #返回list,元素为str print(stderr.readlines()) # 返回list,元素为str for line in stdout.readlines(): readlines(): print(line, end="") # 默认是每个元素都带有末尾换行符 ★使用密钥认证 import paramiko import sys import time hostname = "10.99.1.233" username = "root" prikey_file = "D:\\tmp\\id_rsa2" port = 22 timeout = 200 码力 | 213 页 | 3.53 MB | 1 年前3
k8s操作手册 2.3ka8k02.9f2uowba7j21qv0g master1 结 点 # kubeadm token create ka8k02.9f2uowba7j21qv0g --print-join- command 再复制(kubeadm join xxxxx)命令到node结点上执行: node结点执行# kubeadm join 10.99.1.51:6443 --token ka8k02.9f2uowba7j21qv0g #容器使用的镜像 imagePullPolicy: IfNotPresent #镜像获取方式,优先本地,后网络 拉取 #command: [ "/bin/sh", "-ce", "ping -c 3 1.1.1.1" ] #容器入口程序及参数 resources: requests: #pod存活性探测 exec: #使用exec,在容器里执行shell命令,返回0则成功 command: ["test", "-e", "/tmp/xxhealthy"] #执行的命令 # kubectl get pod0 码力 | 126 页 | 4.33 MB | 1 年前3
The DevOps Handbookthat learning into future work d. Google Web Server (GWS) team was struggling with changes – Hard line: no changes would be accepted into GWS without accompanying automated tests. Spread Testing Grouplet reliable automated tests to validate deployable state 2. Culture that “stops the entire production line” when validation tests fail 3. Developers working in small batches on trunk rather than long-lived0 码力 | 8 页 | 23.08 KB | 5 月前3
Predictably Irrationalat random times and someone from each tent must check in, else your tent moves to the back of the line, 48 hours before game time, when air horn sounds every study must check in Experiment: What would0 码力 | 3 页 | 234.46 KB | 5 月前3
postgresql操作手册postgres 库 下 面 的 名 为 pg_catalg 的 schema 下 的 pg_hba_file_rules表里: INSERT INTO "pg_hba_file_rules" ("line_number", "type", "database", "user_name", "address", "netmask", "auth_method", "options", "error")0 码力 | 17 页 | 445.84 KB | 1 年前3
The DevOps Handbooktesting failure – seems valid since better testing practices could have mitigated iii. In low-trust, command & control cultures, change control often results in worse outcomes d. POTENTIAL DANGERS OF “OVERLY0 码力 | 8 页 | 24.02 KB | 5 月前3
A Seat at the Table - IT Leadership in the Age of Agilityinfluence and for framing those decisions. And the team requires empowerment—that is, freedom from command and control—within its solutioning boundaries, but the effort of coordinating the activities of0 码力 | 7 页 | 387.48 KB | 5 月前3
共 7 条
- 1













