• 博客园Logo
  • 首页
  • 新闻
  • 博问
  • 专区
  • 闪存
  • 班级
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 简洁模式 ... 退出登录
    注册 登录
奋斗的小农
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2022年5月10日

记录坑:ThreadingTCPServer 的使用 线程未释放导致python 进程内存一直增加
摘要: from socketserver import ThreadingTCPServer, StreamRequestHandler class FileServer(StreamRequestHandler): clients = {} def setup(self): super().setup( 阅读全文
posted @ 2022-05-10 22:13 奋斗的小农 阅读(3) 评论(0) 推荐(0) 编辑
 
 

2022年1月17日

python 中ELasticsearch 连接池
摘要: import os import json from datetime import datetime from elasticsearch import Elasticsearch, RequestsHttpConnection from elasticsearch import Transpor 阅读全文
posted @ 2022-01-17 22:06 奋斗的小农 阅读(207) 评论(1) 推荐(0) 编辑
 
 

2022年1月4日

ES 嵌套字段、多字段去重
摘要: cardinality 去重 body={ "aggs": { "threat_name_aggs": { "cardinality": { "field": "alert.threat_name.keyword" } } }, "collapse":{ "field":"alert.threat_ 阅读全文
posted @ 2022-01-04 23:19 奋斗的小农 阅读(175) 评论(0) 推荐(0) 编辑
 
 

2022年1月3日

ES 中多条件查询 匹配
摘要: 近期使用ES做关联查询,实现 a and b and (c1 or c2)and (d1 or d2)的方法 被should 和must搞得晕头转向,后仔细拜读使用说明实现: GET gather-034-20171225/_search { "query": { "bool": { "must": 阅读全文
posted @ 2022-01-03 21:51 奋斗的小农 阅读(528) 评论(0) 推荐(0) 编辑
 
 

2022年1月2日

ES 并且或者查询
摘要: must should 的使用 GET /http_index/type/_search { "query": { "bool": { "should": [ { "bool": { "must": [ { "term" : { "field1" : { "value" : 110, "boost" 阅读全文
posted @ 2022-01-02 20:31 奋斗的小农 阅读(279) 评论(0) 推荐(0) 编辑
 
 

2021年12月31日

python三级菜单数据封装
摘要: a=[ {"id":1,"menu_name":"菜单1","pid":0}, {"id":2,"menu_name":"菜单1-1","pid":1}, {"id":3,"menu_name":"菜单1-2","pid":1}, {"id":4,"menu_name":"菜单1-3"," 阅读全文
posted @ 2021-12-31 00:31 奋斗的小农 阅读(14) 评论(0) 推荐(0) 编辑
 
 

2021年12月19日

mysql安装————install/remove of the Service Denied
摘要: 在安装mysql过程中遇到一个问题 install/remove of the Service Denied,这个问题说明自己没有安装和删除的权利,原因是自己在运行cmd过程是没有使用管理员身份运行,解决方法:就是以管理员身份运行cmd,再进行安装 阅读全文
posted @ 2021-12-19 20:48 奋斗的小农 阅读(121) 评论(0) 推荐(0) 编辑
 
MySQL从服务列表消失了
摘要: 安装mysql成功,过段时间通过XAMpp启动时报错 Error: MySQL shutdown unexpectedly.This may be due to a blocked port, missing dependencies, improper privileges, a crash, o 阅读全文
posted @ 2021-12-19 20:47 奋斗的小农 阅读(13) 评论(0) 推荐(0) 编辑
 
MySQL移动安装目录后服务列表的可执行目录更改
摘要: 第一步:快捷键 Win+ R 呼出运行,输入regedit 回车打开注册表 第二步: 依此点击 HKEY_LOCAL_MACHINE >> SYSTEM >> CurrentControlSet >> Services 第三步: 输入法切换为英文 点击 Services 按下服务名的首字母进行筛序 阅读全文
posted @ 2021-12-19 20:38 奋斗的小农 阅读(18) 评论(0) 推荐(0) 编辑
 
虚拟机安装ubuntu系统
摘要: 一、下载Ubuntu镜像文件 下载地址:http://www.ubuntu.com 打开上面的连接,我们来到如下页面,点击download: 下一步,到如下页面,点击Ubuntu Desktop 然后选择Ubuntu 14.04.3 LTS release notes: 然后选择Ubuntu Des 阅读全文
posted @ 2021-12-19 18:48 奋斗的小农 阅读(313) 评论(0) 推荐(0) 编辑
 
 
下一页

Powered by: 博客园
Copyright © 2022 奋斗的小农
Powered by .NET 6 on Kubernetes