当前位置:网站首页>Redis login client command
Redis login client command
2022-04-22 11:02:00 【Programmer hyperspace】
Redis command
Redis The command is used in the redis Perform operations on the service .
To be in redis Executing commands on a service requires a redis client .Redis The client downloaded before us redis In the installation package of .
grammar
Redis The basic syntax of the client is :
$ redis-cli
example
The following example shows how to start redis client :
start-up redis client , Open the terminal and enter the command redis-cli. This command will connect to the local redis service .
$redis-cli
redis 127.0.0.1:6379>
redis 127.0.0.1:6379> PING
PONG
In the above example, we connect to the local redis Serve and execute PING command , This command is used to detect redis Whether the service starts .
Execute commands on remote services
If you need to be remotely redis Execute commands on the service , We also use redis-cli command .
grammar
$ redis-cli -h host -p port -a password
example
The following example demonstrates how to connect to a host for 127.0.0.1, Port is 6379 , The password for mypass Of redis Service .
$redis-cli -h 127.0.0.1 -p 6379 -a “mypass”
redis 127.0.0.1:6379>
redis 127.0.0.1:6379> PING
PONG
版权声明
本文为[Programmer hyperspace]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221100027607.html
边栏推荐
- [leetcode] the first mock exam of two tree traversal iteration method.
- 图解文件系统——我见过讲文件系统讲的最好的文章了
- 找国企、央企、上市公司投资人,我选择塔米狗!
- Synchronized锁及其膨胀
- 中职网络安全attack.pcapng数据包的flag
- 2022 年度广东省职业院校学生专业技能大赛网络安全(中职组)赛项样题
- Convolutional neural network
- Secure remote access + secure file transfer + terminal simulation + Remote Management - Shanghai daoning united with Van Dyke to bring reliable and easy to configure software to IT industry personnel
- Spa first screen loading optimization
- 女生学软件测试难不难?
猜你喜欢
随机推荐
相控阵天线低副瓣加权处理
Synchronized锁及其膨胀
As a half salted fish in the workplace, how can we do well in test management
APISIX jwt-auth 插件存在错误响应中泄露信息的风险公告(CVE-2022-29266)
Sample questions of 2022 Guangdong Vocational College Students' professional skills competition network security (secondary vocational group)
2022年中职组“网络空间安全”广东省竞赛 赛项规程
接口自动化-Session鉴定解决方案
关于正则表达式匹配密码问题
正确安装了yarn之后,在vscode中使用yarn安装,报错
async 函数
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
链表动态头插法
C language example 100 (IV)
机器学习基础知识
2022-04-17_函数(一)
MySql5. 7.26 installation
滚动条样式修改
Spa first screen loading optimization
Robot system design coppeliasim simulation
Graphic file system - I've seen the best article on file system








