会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
望山远而力行
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
36
下一页
2022年11月29日
阿里云ELK报错:"reason": "Fielddata is disabled on text fields by default. Set fielddata=true on [url_date] in order to load fielddata in memory by uninverting the inverted index.
摘要: 原因是url_date这个字段类型动态转成了text类型,只需要把在kibana索引管理,索引模板添加url_date字段为date类型就可以了,把旧的索引删除,新生成的索引就沿着这个模板
阅读全文
posted @ 2022-11-29 12:18 lucky_tomato
阅读(193)
评论(0)
推荐(0)
2022年11月28日
iftop排查流量异常进程
摘要: 前言:某天线上一台机器在触发流量告警,需要排查异常进程,使用iftop命令进行检查 yum install iftop -y 1、执行iftop -nNP命令会出现以下界面 界面说明: =>代表发送数据 <=代表接收数据 TX:发送流量 RX:接收流量 TOTAL:总流量 Cumm:运行iftop到
阅读全文
posted @ 2022-11-28 15:15 lucky_tomato
阅读(1307)
评论(0)
推荐(0)
2022年11月25日
Python2安装supervisor
摘要: 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)
查看当前supervisor的版本信息
摘要: /usr/bin/supervisord -v
阅读全文
posted @ 2022-11-25 15:11 lucky_tomato
阅读(216)
评论(0)
推荐(0)
2022年11月21日
kubeadm join 运行出错:FileAvailable--etc-kubernetes-pki-ca.crt,FileAvailable--etc-kubernetes-bootstrap-k
摘要: 分析问题: 这个问题是在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)
kubectl进程启动失败"Streaming server stopped unexpectedly" err="listen tcp [::1]:0: bind: cannot assign requested address"
摘要: 使用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)
2022年11月10日
go软件包下载地址
摘要: https://studygolang.com/dl
阅读全文
posted @ 2022-11-10 21:41 lucky_tomato
阅读(43)
评论(0)
推荐(0)
2022年10月28日
python列表套字典去重
摘要: 最近在写工具,拿到数据,发现有重复的,想到用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)
Python time.strptime()方法
摘要: 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)
python时间戳转换
摘要: 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
下一页
公告