python3学习手册port = 22 timeout = 20 # 单位:秒 client1 = paramiko.client.SSHClient() client1.set_missing_host_key_policy(paramiko.AutoAddPolic y()) # 允许连接不在know_hosts文件里的主机 try: client1.connect(hostname=hostname, port=port AuthenticationException as e: print(f"Authentication Error: {e}") exit() stdin, stdout, stderr = client1.exec_command("ls -l") # 执行一次性命令 # stdout.read() #返回bytes # stdout.readlines() print("## 请输入:要执行的命令,最后按Ctrl+D结束输入 ##") input_list = sys.stdin.readlines() # 输入要执行的命令 client1 = paramiko.SSHClient() client1.set_missing_host_key_policy(paramiko.AutoAddPolic y()) # 自动添加服务器的ssh密钥,允许连接不在know_hosts文件里的0 码力 | 213 页 | 3.53 MB | 1 年前3
k8s操作手册 2.3★容器探测其他配置: ★HTTP探测 livenessProbe: #pod存活性探测 h�pGet: #使用h�p path: /xx/cxxx/healthz #请求的文件 port: 80 scheme: HTTP #协议,可为HTTP, HTTPS ★执行shell命令进行探测 kube/config文件中 # kubectl config set-creden�als kube-user01 --embed-certs=true \ --client-cer�ficate=/etc/kubernetes/pki/kube-user01.crt \ --client-key=/etc/kubernetes/pki/kube-user01.key #创建context上下文 # kubectl config Prometheus是一款基于时序数据库的开源监控告警系统,Prometheus的基本原 理是通过HTTP协议周期性抓取被监控组件的状态,任意组件只要提供对应的 HTTP接口就可以接入监控。不需要任何SDK或者其他的集成过程。这样做非常 适合做虚拟化环境监控系统,比如VM、Docker、Kubernetes等。输出被监控组 件信息的HTTP接口被叫做exporter Promethus特点: 支持多维数据0 码力 | 126 页 | 4.33 MB | 1 年前3
The DevOps HandbookFIND AND FILL ANY TELEMETRY GAPS i. Expand metrics from business, application, infrastructure, client software, and deployment pipeline levels 1. With every production incident identify missing telemetry0 码力 | 8 页 | 24.02 KB | 5 月前3
Velocity Conference 2015about? What did I learn? Service Workers: The Practical Bits by Patrick Meenan (Google) @patmeenan http://www.slideshare.net/patrickmeenan/service-workers-for-performance They are effectively a man in Performance Best Practices Together to Create the Perfect SPA by Chris Love (Love2Dev) @ChrisLove http://www.slideshare.net/docluv/putting-performance-best-practices-together-for-a-spa "We have created (but where the heck do you start?) by Tammy Everts & Cliff Crocker (SOASTA) @tameverts @cliffcrocker http://www.slideshare.net/CloudTest/metrics-metrics-everywhere-but-where-the-heck-do-you-start The myth0 码力 | 4 页 | 176.79 KB | 5 月前3
Pomodoro TechniqueUtica Coll. of Syracuse Univ. Lib., N.Y . Attributions and References [1] The Pomodoro Technique, http://pomodorotechnique.com/ [2] Personal Productivity Using The Pomodoro Technique, Daniel Hinojosa w/ present#slide=id.i0 [3] Flow: The Psychology of Optimal Experience, Mihaly Csikszentmihalyi, http://www.amazon.com/Flow-Psychology-Experience-Mihaly-Csikszentmihalyi/dp/0061339202/Walkthrough To0 码力 | 3 页 | 289.16 KB | 5 月前3
The Phoenix ProjectAttributions [1] Amazon, http://www.amazon.com/Phoenix-Project-DevOps-Helping-Business/dp/0988262509/[2] The Three Ways: The Principles Underpinning DevOps, Gene Kim, http://itrevolution.com/the-three-ways-0 码力 | 3 页 | 154.45 KB | 5 月前3
共 6 条
- 1













