当前位置:网站首页>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. .
边栏推荐
- JUnit unit test reports an error org junit. runners. model. InvalidTestClassError: Invalid test class ‘xxx‘ . No runnable meth
- codeforce 158B Taxi
- C language learning summary
- Spock约束-调用频率/目标/方法参数
- asp. Net file download demo and related problems
- Don't look for [12 super easy-to-use Google plug-ins are here] (are you sure you want to take a look?)
- 316. 去除重复字母
- [AI practice] xgbgressor model accelerates training and uses GPU to train xgbgressor in seconds
- 318. maximum word length product
- 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
猜你喜欢

深度学习系列46:人脸图像超分GFP-GAN

In depth learning series 46: face image super score gfp-gan

GIS实战应用案例100篇(七十九)-多规整合底图的制作要点

PSP code implementation

Vs2013 ffmpeg environment configuration and common error handling

MYSQL牛客刷题

Deeplab V3 code structure diagram

Learning and using quartz scheduling framework

100 GIS practical application cases (79) - key points of making multi plan integrated base map

深度学习系列47:styleGAN总结
随机推荐
901. stock price span
896. 单调数列
如何优雅的快速下载谷歌云盘的大文件 (二)
Project_ Filter to solve Chinese garbled code
898. subarray bitwise OR operation
309. 最佳买卖股票时机含冷冻期
[game theory] basic knowledge
Deep learning series 47: Super sub model real esrgan
1161 Merging Linked Lists
Eureka
MySQL(五) — 锁及事务
codeforce 158B Taxi
Akamai-1.75版本-_abck参数生成-js逆向分析
A small method of debugging equipment serial port information with ADB
315. calculate the number of elements on the right that are smaller than the current element
【***数组***】
MySQL(四) — MySQL存储引擎
[AI practice] xgb Xgbregression multioutputregressor parameter 1
滚动播报效果的实现
Mysql事务隔离级别