上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页
摘要: $ cat checkdisk.py #!/usr/bin/python # -*- coding: utf-8 -*- import os import socket import smtplib from email.mime.text import MIMEText from email.he 阅读全文
posted @ 2020-11-04 15:13 lixinliang 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 主要修改:nginx-configuration kubectl get cm -n ingress-nginx nginx-configuration -o yaml apiVersion: v1 data: log-format-upstream: '{ "time": "$time_iso86 阅读全文
posted @ 2020-11-04 15:07 lixinliang 阅读(596) 评论(0) 推荐(0) 编辑
摘要: $ cat checkserver.py #!/usr/bin/python # -*- coding: utf-8 -*- import os import socket import smtplib from email.mime.text import MIMEText from email. 阅读全文
posted @ 2020-10-16 11:28 lixinliang 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 使用 pip 命令来安装 mysql-connector: python -m pip install mysql-connector 开始演练: import mysql.connector mydb = mysql.connector.connect( host="192.168.10.10", 阅读全文
posted @ 2020-10-14 17:02 lixinliang 阅读(333) 评论(0) 推荐(0) 编辑
摘要: #父类Person class Person(): def __init__(self,name,age,hair): self.name = name self.age = age self.hair = hair def talk(self): print("Person is talking 阅读全文
posted @ 2020-10-13 19:20 lixinliang 阅读(856) 评论(0) 推荐(0) 编辑
摘要: class Person: #类名称 a = 0 #初始化一个起始值 def __init__(self,name,height,weight): #类的初始化,第一个参数必须是 self,后面参数分别表示为 名称,身高,体重 self.name = name #访问对应的变量 self.heigh 阅读全文
posted @ 2020-10-13 17:17 lixinliang 阅读(218) 评论(0) 推荐(0) 编辑
摘要: import requests from pyquery import PyQuery as pq import time import os import random #自定义header header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10. 阅读全文
posted @ 2020-10-10 23:05 lixinliang 阅读(116) 评论(0) 推荐(0) 编辑
摘要: $ cat /etc/docker/daemon.json { "default-ulimits":{ "nofile":{ "Name":"nofile", "Hard":864000, "Soft":864000 } }, "log-driver":"json-file", "log-opts" 阅读全文
posted @ 2020-10-09 16:38 lixinliang 阅读(299) 评论(0) 推荐(0) 编辑
摘要: HP 服务器查询: hpacucli ctrl all show config hpacucli ctrl slot=1 show config detail 其他型号: MegaCli -LdPdInfo -aALL|more MegaCli -PDList -aAll| grep -Ei "(E 阅读全文
posted @ 2020-08-19 10:49 lixinliang 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 1. 查看各个证书过期时间 3个master 都要 kubeadm alpha certs check-expiration 2. 备份原有证书 3个master 都要 cp -rp /etc/kubernetes /etc/kubernetes.bak 3. 备份etcd数据目录 3个master 阅读全文
posted @ 2020-08-12 09:47 lixinliang 阅读(330) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页