上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 30 下一页
2023年5月16日
摘要: 下载&启动 【下载】 https://prometheus.io/download/ 【启动】 1. cd D:\Program Files\alertmanager-0.24.0.windows-amd64 2. 双击 alertmanager.exe 3.访问 http://localhost: 阅读全文
posted @ 2023-05-16 09:29 boye169 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1、/api/v1/query(GET/POST) 即时查询,使用参数如下: - query=<查询语句> - time=<rfc3339 | unix_timestamp>时间戳,可选项 - timeout=<duration>: 超时时间,-query.timeout限制,可选项 若time不给 阅读全文
posted @ 2023-05-16 09:19 boye169 阅读(79) 评论(0) 推荐(0) 编辑
2023年5月12日
摘要: 1、导包import csv2、创建或打开文件,设置文件形式csvfile = open('文件名.csv',mode='w',newline='')3、设置列名headers = ['列名1','列名2','列名3',...]4、创建DictWriter对象 write = csv.DictWri 阅读全文
posted @ 2023-05-12 14:09 boye169 阅读(570) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import requests import json try: from urllib.parse import urlencode except: from urllib import urlencode session = requests.Session() de 阅读全文
posted @ 2023-05-12 11:31 boye169 阅读(13) 评论(0) 推荐(0) 编辑
2023年4月21日
摘要: SELECT UNIX_TIMESTAMP(); SELECT NOW(); SELECT DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%s') AS TIME; select FROM_UNIXTIME(UNIX_TIMESTAMP(),'%Y-%m-%d %H:%i:%S 阅读全文
posted @ 2023-04-21 09:38 boye169 阅读(167) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM student; SELECT `name`,`subject`,`score`,(@i:=@i+1) AS '序号' FROM student,(SELECT @i:=0) AS itable; 阅读全文
posted @ 2023-04-21 09:31 boye169 阅读(24) 评论(0) 推荐(0) 编辑
2023年4月12日
摘要: MySQL字符串排序的很奇怪的问题,在数据里面定义的是varchar类型,实际存放的是Int类型的数据,按一下查询语句进行排序:将字段*1或者+0可以将MySQL字符串字段按数值排序 select * from table where 1 order by id+0 desc; 阅读全文
posted @ 2023-04-12 17:52 boye169 阅读(79) 评论(0) 推荐(0) 编辑
摘要: char(9) 表示水平制表符 (tab键 \t)char(10) 表示换行键 (\n)char(13) 表示回车键 (\r) UPDATE table_name SET column= REPLACE(column,CHAR(13),'');//将回车符号替换为空 UPDATE table_nam 阅读全文
posted @ 2023-04-12 16:41 boye169 阅读(411) 评论(0) 推荐(0) 编辑
2023年4月10日
摘要: 显示北京时间 export TZ='Asia/Shanghai' date +"%F %T" 显示指定时区时间 utc0time=`date -u "+%Y-%m-%d %H:%M"` utc8time=`date -u "+%Y-%m-%d %H:%M" -d "8 hour"` 时间运算部分 d 阅读全文
posted @ 2023-04-10 11:13 boye169 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 设置后台启动 新建run.bat文件 @echo off if "%1"=="h" goto begin start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begi 阅读全文
posted @ 2023-04-10 10:06 boye169 阅读(329) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 30 下一页