- 博客(8)
- 收藏
- 关注
原创 redis使用lua脚本批量删除key
示例准备一些测试数据 如下:127.0.0.1:6379> keys *1) "test_03"2) "test_02"3) "test_04"4) "test_01"执行脚本/结果fangkeke@KK-MBP.local:~/Work/script $ redis-cli --eval /Users/fangkeke/Work/script/clear_cache.lua "test*"1) 1) "test_03" 2) (integer) 12) 1) "t
2021-07-22 14:26:10
2088
原创 ES索引修改
五步口诀新建索引复制数据确认数据删除旧索引创建别名新建一个索引说明:新建的这个索引就是你要修改之后索引,测试的时候使用: modify_index_newcurl -X PUT "localhost:9200/modify_index_new?pretty" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { "number_of_shards" : 3,
2021-06-11 14:35:46
3320
原创 supervisor安装使用教程
安装pip install supervisor生成配置文件echo_supervisord_conf > /etc/supervisor/supervisord.conf #目录自行创建启动supervisord -c /etc/supervisor/supervisord.conf检查是否启动正常ps aux | grep supervisord使用方法打开配置文件,到文件最底部[include]files=/etc/supervisor/conf.d/*.ini
2020-08-05 16:49:19
297
原创 python自学笔记【基础L1】
目录一: 基础数据类型二: 变量三: 序列四: 条件 循环五: 映射字典六: 文件输入输出七:错误和异常八:函数九 模块十 规范面向对象 (封装 继承 多态)十一 多线程编程一: 基础数据类型1. 整数 int 1,2,3....2. 浮点数 float 3.5 小数3. 字符串 str4. 布尔值 bool true/false# 强制类型转换int("1") >> 1str(1) >> "1"float(2) >> 2.0bool("fanker
2020-06-20 16:12:05
296
原创 网站突然打不开,“慌”的一笔~
来的这么突然,让我猝不及防项目背景:单体服务,所以一台机器干了所有的活(数据库/缓存/接口/页面)问题原因:磁盘空间满了因为项目小,没有想到会因为磁盘空间不足导致问题的出现,所以一开始想到的是redis抽风了0x1突然网站打不开了,授权登陆接口报错信息如下MISCONF Redis is configured to save RDB snapshots, but is current...
2020-01-04 18:55:42
818
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人