上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页
摘要: 原因是url_date这个字段类型动态转成了text类型,只需要把在kibana索引管理,索引模板添加url_date字段为date类型就可以了,把旧的索引删除,新生成的索引就沿着这个模板 阅读全文
posted @ 2022-11-29 12:18 lucky_tomato 阅读(193) 评论(0) 推荐(0)
摘要: 前言:某天线上一台机器在触发流量告警,需要排查异常进程,使用iftop命令进行检查 yum install iftop -y 1、执行iftop -nNP命令会出现以下界面 界面说明: =>代表发送数据 <=代表接收数据 TX:发送流量 RX:接收流量 TOTAL:总流量 Cumm:运行iftop到 阅读全文
posted @ 2022-11-28 15:15 lucky_tomato 阅读(1307) 评论(0) 推荐(0)
摘要: pip install virtualenv virtualenv --distribute -p /usr/bin/python2 super cd super source bin/activate ./bin/pip install supervisor 阅读全文
posted @ 2022-11-25 15:12 lucky_tomato 阅读(72) 评论(0) 推荐(0)
摘要: /usr/bin/supervisord -v 阅读全文
posted @ 2022-11-25 15:11 lucky_tomato 阅读(216) 评论(0) 推荐(0)
摘要: 分析问题: 这个问题是在kube-public下的 configmap 的 cluster-info 中没有JWS签名, 本质上是 token 过期。 [root@master 10:15:13 ~]# kubeadm token list # 此处没有任何输出, 表明没有存活的token 解决问题 阅读全文
posted @ 2022-11-21 10:22 lucky_tomato 阅读(183) 评论(0) 推荐(0)
摘要: 使用systemctl start kubelet启动发现没有报错,使用journalctl -xefu kubelet查看报错如下 "Streaming server stopped unexpectedly" err="listen tcp [::1]:0: bind: cannot assig 阅读全文
posted @ 2022-11-21 10:04 lucky_tomato 阅读(360) 评论(0) 推荐(0)
摘要: https://studygolang.com/dl 阅读全文
posted @ 2022-11-10 21:41 lucky_tomato 阅读(43) 评论(0) 推荐(0)
摘要: 最近在写工具,拿到数据,发现有重复的,想到用set去重,结果报错了,哈哈,重新学习下 # 例子: data_list = [{'id':1,'name':'user01'},{'id':2,'name':'user02'},{'id':1,'name':'user01'}] data = set(d 阅读全文
posted @ 2022-10-28 22:13 lucky_tomato 阅读(451) 评论(0) 推荐(0)
摘要: time.strptime() 函数根据指定的格式把一个时间字符串解析为时间元组。 import time from datetime import datetime result = time.strptime("1. 2022-12-10 10:45:00","1. %Y-%m-%d %H:%M 阅读全文
posted @ 2022-10-28 21:09 lucky_tomato 阅读(314) 评论(0) 推荐(0)
摘要: import time,datetime # 当前时间转时间戳 maintenance_time = (datetime.datetime.now() + datetime.timedelta()).strftime("%Y-%m-%d %H:%M:%S") struct_time = time.s 阅读全文
posted @ 2022-10-28 20:49 lucky_tomato 阅读(666) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页