In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
How to check redis password? In response to this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more small partners who want to solve this problem find a simpler and easier way.
How to check redis password?
Redis does not implement access control, but it does provide a lightweight authentication method that can be edited to enable authentication.
1. Initialize Redis password:
There is a parameter in the configuration file: requirepass This is the parameter for configuring redis access password;
For example, requestpass test123;
(Ps: Need to restart Redis to take effect)
Redis query speed is very fast, external users can try as many as 150K passwords in one second; so the password should be as long as possible (for DBAs there is no need to remember the password);
2, Do not restart Redis Set password:
Configure the password for Requipass in the configuration file (password remains valid when redis restarted).
redis 127.0.0.1:6379> config set requirepass test123
Search password:
redis 127.0.0.1:6379> config get requirepass (error) ERR operation not permitted
Password verification:
redis 127.0.0.1:6379> auth test123 OK
Query again:
redis 127.0.0.1:6379> config get requirepass 1) "requirepass" 2) "test123"
PS: If no password is added to the configuration file, the password will be invalid after redis restarts;
3. Log in to Redis with password:
Enter your password when logging in:
redis-cli -p 6379 -a test123
Log in and verify:
redis-cli -p 6379 redis 127.0.0.1:6379> auth test123 OK
AUTH commands, like other redis commands, are not encrypted; they do not prevent attackers from stealing your password on the network;
The goal of authentication layers is to provide one more layer of protection. If firewalls or the systems used to protect redis fail to defend against external attacks, external users will still be unable to access redis without password authentication.
About redis password how to view the answer to the question to share here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.