In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you that redis is the reason for security, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
We can set the password parameters through the redis configuration file, so that the client needs password authentication to connect to the redis service, which makes your redis service more secure.
Example
We can see if password authentication is set with the following command:
127.0.0.1 purl 6379 > CONFIG get requirepass
1) "requirepass"
2) "
By default, the requirepass parameter is empty, which means you can connect to the redis service without password authentication.
You can modify this parameter with the following command:
127.0.1 6379 > CONFIG set requirepass "runoob"
OK
127.0.0.1 purl 6379 > CONFIG get requirepass
1) "requirepass"
2) "runoob"
Once the password is set, the client needs password authentication to connect to the redis service, otherwise the command cannot be executed.
Grammar
The basic syntax format of the AUTH command is as follows:
127.0.0.1 purl 6379 > AUTH password
Example
127.0.1 6379 > AUTH "runoob"
OK
127.0.1 6379 > SET mykey "Test value"
OK
127.0.0.1 purl 6379 > GET mykey
"Test value"
The above is to say that redis is safe for all the reasons for the content, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.