当前位置:网站首页>Redis setting password
Redis setting password
2022-06-23 07:15:00 【qq_ thirty-seven million two hundred and seventy-nine thousand 】
One . The first way ( At present this kind of linux To configure redis The password method is a temporary , If redis The password will be invalid after restart ,)
(1) First of all to enter redis, If it's not on redis You need to open it first :
[[email protected] bin]# redis-cli -p 6379
127.0.0.1:6379>
(2) View the current redis Have you set the password :
127.0.0.1:6379> config get requirepass
- “requirepass”
- “”
(3) There is no password for the above display , Now set the password :
127.0.0.1:6379> config set requirepass abcdefg
OK
127.0.0.1:6379>
(4) Check the current... Again redis You need a password :
127.0.0.1:6379> config get requirepass
(error) NOAUTH Authentication required.
127.0.0.1:6379>
2. The second way ( Permanent way )
If you need to configure the password permanently, go redis.conf Found in the configuration file for requirepass This parameter , The following configuration :
modify redis.conf The configuration file
requirepass foobared Change it to
requirepass 123 Specified password 123
Restart after saving redis That's all right. .
边栏推荐
猜你喜欢
随机推荐
直播回顾 | 传统应用进行容器化改造,如何既快又稳?
312. 戳气球
How to achieve efficient network information dissemination
‘latin-1‘ codec can‘t encode characters in position 103-115: Body (‘一串中文‘) is not valid Latin-1
C DPI adaptation problem
都是硬盘分区 C盘和D盘到底有什么区别?
Database principle experiment test questions, about book classification table
MySQL(二) — MySQL数据类型
901. 股票价格跨度
用户态和内核态
MySQL(八) — 执行计划(Explain)详解
315. 计算右侧小于当前元素的个数
.h5文件忘记数据库名字,使用h5py打印
898. subarray bitwise OR operation
MySQL总结
About SQL: is there a way to fill in the null value in the field without adding fields on the basis of the original fields
Add IPAD control function into shairplay
301. delete invalid brackets
Lombok的使用
yolov5检测小目标(附源码)









