当前位置:网站首页>Redis之连接redis服务命令
Redis之连接redis服务命令
2022-07-06 08:59:00 【~庞贝】
Redis之连接redis服务命令
1.auth
命令用于检测给定的密码和配置文件中的密码是否相符。
返回值:密码匹配时返回 OK ,否则返回一个错误。
AUTH PASSWORD

2.select
Select 命令用于切换到指定的数据库,数据库索引号 index 用数字值指定,以 0 作为起始索引值。
默认使用0号数据库
SELECT index
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-cDWHXY3o-1656471720107)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629105804966.png)]](/img/1e/172f23c7047d6f741bb8f8f15c299d.png)
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-uioGdORE-1656471720108)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629105817001.png)]](/img/f0/6e24eb55d7d93cea738e2a7d103015.png)
3.ping
Ping 命令使用客户端向 Redis 服务器发送一个 PING ,如果服务器运作正常的话,会返回一个 PONG 。
通常用于测试与服务器的连接是否仍然生效,或者用于测量延迟值。
如果连接正常就返回一个 PONG ,否则返回一个连接错误。
PING
4.quit
命令用于关闭与当前客户端与redis服务的连接
返回值:总是返回 OK 。

5.echo
Echo 命令用于打印给定的字符串
返回值:返回字符串本身。
ECHO message

6.clear
清除屏幕中的信息
clear
7.help
获取命令帮助文档,获取组中所有命令信息名称
help 命令名称
help @组名
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-z9e3Y8l2-1656471720108)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629110043591.png)]](/img/90/9a1c369455668fa8a455c30d40b433.png)
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-iWEAOwwb-1656471720109)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629110052940.png)]](/img/c1/dadd6123702787f008bdfe586e1db1.png)
边栏推荐
猜你喜欢

KDD 2022 paper collection (under continuous update)

Mise en œuvre de la quantification post - formation du bminf

Ijcai2022 collection of papers (continuously updated)

Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
![[MySQL] limit implements paging](/img/94/2e84a3878e10636460aa0fe0adef67.jpg)
[MySQL] limit implements paging

MYSQL卸载方法与安装方法

如何正确截取字符串(例:应用报错信息截取入库操作)

BMINF的後訓練量化實現
![[OC]-<UI入门>--常用控件-提示对话框 And 等待提示器(圈)](/img/af/a44c2845c254e4f48abde013344c2b.png)
[OC]-<UI入门>--常用控件-提示对话框 And 等待提示器(圈)
![[OC-Foundation框架]-<字符串And日期与时间>](/img/75/e20064fd0066810135771a01f54360.png)
[OC-Foundation框架]-<字符串And日期与时间>
随机推荐
LeetCode:387. The first unique character in the string
甘肃旅游产品预订增四倍:“绿马”走红,甘肃博物馆周边民宿一房难求
【shell脚本】使用菜单命令构建在集群内创建文件夹的脚本
Redis之五大基础数据结构深入、应用场景
Seven layer network architecture
【文本生成】论文合集推荐丨 斯坦福研究者引入时间控制方法 长文本生成更流畅
Intel distiller Toolkit - Quantitative implementation 1
CSP student queue
UML图记忆技巧
Cesium draw points, lines, and faces
Connexion d'initialisation pour go redis
【图的三大存储方式】只会用邻接矩阵就out了
Selenium+Pytest自动化测试框架实战(下)
Redis之持久化实操(Linux版)
Once you change the test steps, write all the code. Why not try yaml to realize data-driven?
Detailed explanation of dynamic planning
Advanced Computer Network Review(3)——BBR
【shell脚本】——归档文件脚本
Improved deep embedded clustering with local structure preservation (Idec)
CUDA implementation of self defined convolution attention operator