当前位置:网站首页>redis相关
redis相关
2022-07-28 20:50:00 【积分中值定理】
1.查找redis安装路径
whereis redis
2.切换到redis脚本目录,登录redis
./redis-cli -h xxx.xxx.xxx.xx -p xxxx
3.查看当前数据库key的数量,执行:dbsize命令
(如果出现(error) ERR unknown command ‘(error)’ ,输入auth 密码 )
4.auth 密码
5.查看所有key值
keys *
查看可能key值(正则)
keys abc* -通配任意多个字符,abcd,abcdefg都能查到
keys h?llo -通配单个字符,hello/hallo
keys a[bc]ple -[]通配括号内的某个字符,要么abple,要么acple,不可以aple
keys a[a-b-c]ple -相当于or,匹配a/b/c
keys a[^f]ple -匹配f之前的字母
配合使用
keys h[a-b-c]*llo:匹配ha(任意多)llo, 或者hb(任意多)llo, 或者hc(任意多)llo
6.删除指定索引的值:del key
6.1(邪术)批量删除指定前缀key值。此操作需要先退出redis库,利用Linux的管道命令实现
./redis-cli -h xx.xx.xx.xx -a "密码写在引号里" keys "条件*" | xargs ./redis-cli -h xx.xx.xx.xx -a "密码写在引号里" del
7.清空整个 Redis 服务器的数据:flushall
8.清空当前库中的所有 key:flushdb
9、退出:exit;
边栏推荐
- LVS+KeepAlived高可用部署实战应用
- Why doesn't the icon on the elment plus icon input display
- Jmeter 安装第三方插件 Plugins Manager
- HCIP(15)
- Hcip experiment (14)
- Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
- Kali source solution software cannot be installed correctly
- [Ruiji takeout] day05 package management business development
- [Ruiji takeout project]day4 - dish management
- Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million
猜你喜欢
随机推荐
Wechat applet uses canvas drawing, round avatar, network background, text, dotted line, straight line
Static route and default route experiment
flask之蓝图 补充openpyxl
微信小程序里button点击的时候会边框有黑线
Hcip experiment (12)
HCIP(13)
Common commands of NPM
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
2022年一级建造师考试什么时候才能报名?
The binary search boundary value processing based on leetcode35 is used to clarify the boundary value of the judgment condition using the idea of interval
Summary of common error types in JS
ssh 免密码登录
Necessary for in-depth learning: split the data set, split the labels according to the split pictures, and check the interval of all marked labels
静态成员static详解
Solve the problem that TS node xxx.ts executes TS code and reports errors
MySQL installation and configuration (super detailed, simple and practical)
HCIP(9)
[leetcode] maximum depth of binary tree
Tensorflow serving high performance machine learning model service system
gprs网络指的是什么


![[CS231N]Lecture_2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)




![[LiteratureReview]Object Detection and Mapping with Bounding Box Constraints](/img/37/7cb5fa3a9078a5f5947485147c819d.png)

