会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
醒日是归时
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
19
下一页
2020年12月28日
Docker容器使用问题:Failed to get D-Bus connection: Operation not permitted
摘要: 原因是dbus-daemon没能启动。其实systemctl并不是不可以使用。将你的CMD或者entrypoint设置为/usr/sbin/init即可.如: docker run --privileged -ti -d centos:latest /usr/sbin/init或者Dockerfil
阅读全文
posted @ 2020-12-28 11:32 醒日是归时
阅读(2019)
评论(0)
推荐(0)
2020年12月17日
vue标签页tabs和codemirror一起使用
摘要: vue标签页tabs和codemirror一起使用时, codemirror 会变形 要注意tab切换时,codemirror必须刷新配置 <el-tabs v-model="configupload.upload_active" type="card" @tab-click="handleChan
阅读全文
posted @ 2020-12-17 17:18 醒日是归时
阅读(768)
评论(0)
推荐(0)
2020年11月27日
python SQLAlchemy 查询慢sql
摘要: 1.config文件添加如下配置 FLASKY_DB_QUERY_TIMEOUT = 0.1 # 设置sql执行超时时间 0.1s SQLALCHEMY_RECORD_QUERIES = True # 启用慢查询记录功能 2.public文件添加如下代码,可将 打印的语句个性化输出 from fla
阅读全文
posted @ 2020-11-27 20:51 醒日是归时
阅读(1046)
评论(0)
推荐(0)
2020年11月23日
Json 无法解析 datatime 类型的数据
摘要: from datetime import datetime, date import json class DateEncoder(json.JSONEncoder): ''' Json 无法解析 datatime 类型的数据,构建 DateEncoder 类解决 datatime 解析问题 '''
阅读全文
posted @ 2020-11-23 17:13 醒日是归时
阅读(250)
评论(0)
推荐(0)
2020年11月19日
k8s中pod的yaml文件全面解读
摘要: apiVersion: v1 #必选,版本号,例如v1,版本号必须可以用 kubectl api-versions 查询到 . kind: Pod #必选,Pod metadata: #必选,元数据 name: string #必选,Pod名称 namespace: string #必选,Pod所属
阅读全文
posted @ 2020-11-19 17:19 醒日是归时
阅读(706)
评论(0)
推荐(0)
element-ui中的change事件传递多个参数的方法
摘要: 默认是@change="changeEvent" 不传递参数,才会把选中的值带过去 但是有时候,我们不仅仅需要选中的值,还需要传递额外的值,比如id之类的参数怎么办呢,下面有两种方法可以解决 第一种:@change = changeEvent( event,args);event,args);eve
阅读全文
posted @ 2020-11-19 16:12 醒日是归时
阅读(4745)
评论(0)
推荐(2)
2020年11月5日
python实现格林威治时间到北京时间的转化
摘要: # UTC2BJS def UTC2BJS(UTC): UTC_format = "%Y-%m-%dT%H:%M:%S.%fZ" BJS_format = "%Y-%m-%d %H:%M:%S" UTC = datetime.strptime(UTC,UTC_format) #格林威治时间+8小时变
阅读全文
posted @ 2020-11-05 17:41 醒日是归时
阅读(1605)
评论(0)
推荐(0)
2020年11月4日
grafana+elasticsearch API 使用
摘要: grafana取Prometheus的数据的时候,使用接口 grafana接口 ,后面加上Prometheus的接口路径 /api/datasources/proxy/1/api/v1/query_range 1是DataSourceID,有可能不为1Prometheus官网 API:https:/
阅读全文
posted @ 2020-11-04 19:09 醒日是归时
阅读(2175)
评论(0)
推荐(0)
grafana +Prometheus API 使用
摘要: Prometheus API 使用了 JSON 格式的响应内容。 输入时间戳可以由 RFC3339 格式或者 Unix 时间戳提供,后面可选的小数位可以精确到亚秒级别。输出时间戳以 Unix 时间戳的方式呈现。所有的 API请求返回的格式均使用以下的 JSON 格式: { "status": "su
阅读全文
posted @ 2020-11-04 18:09 醒日是归时
阅读(2213)
评论(0)
推荐(0)
2020年10月28日
echarts柱状图实现横向拖动展示数据
摘要: 在使用echarts柱状图时,如果数据过多,图的显示不会那么直观,有的横坐标会被隐藏,如下图所示: 想实现可以通过横向滚动条拖动展示数据,看了官方文档,实现的效果如下 具体代码:就是添加这个代码就可以了 dataZoom: [ { id: 'dataZoomX', type: 'slider', x
阅读全文
posted @ 2020-10-28 19:02 醒日是归时
阅读(10412)
评论(0)
推荐(1)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
19
下一页
公告