11 2017 档案
摘要:docker run -itd --name promethus -p 10000:9090 -p 11000:9100 -h test1 -v `pwd`/prometheus-1.8.2.linux-amd64:/opt centos 启动 一个主机名为test1的docker 将实体机下的 prometheus-1.8.2.linux-amd64 挂载到docker镜像的/opt下 ...
阅读全文
摘要:# -*- coding:UTF-8 -*- import json from collections import OrderedDict with open('dns_status.json','r') as f: data = json.load(f) import pandas as pd from datetime import datetime def datelist(...
阅读全文
摘要:import pandas as pd from datetime import datetime def datelist(beginDate, endDate): # beginDate, endDate是形如‘20160601’的字符串或datetime格式 date_l=[datetime.strftime(x,'%Y-%m') for x in list(pd.date...
阅读全文
摘要:mailto = ['cc', 'bbbb', 'afa', 'sss', 'bbbb', 'cc', 'shafa'] addr_to = list(set(mailto)) addr_to.sort(key = mailto.index)
阅读全文
摘要:1 # -*- coding:UTF-8 -*- 2 import requests, time 3 import json 4 from bs4 import BeautifulSoup as bp 5 6 t3 = time.time() 7 ths = [] # 存放线程 8 9 10 def
阅读全文