Get the App
SLTechnology News&Howtos  ›  Database  › 

How to set password protection in Redis

Shulou Source: shulou.com Published: 2022-05-31 22:16:22 11月08日 Update

How to set password protection in Redis? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

After Redis is installed, there is no password protection by default. Password protection should be set for security.

Log in to the local 192.168.56.56 server [root@shanxi src] #. / redis-cli on the client side to view the password. The current password is empty 127.0.0.1config get requirepass 6379 > config get requirepass 1) "requirepass" 2) "" set the password to aabbcc 127.0.0.1aabbcc 6379 > config set requirepass "aabbcc" NOAUTH Authentication required to check the password again and show insufficient permissions. You need to log in to 127.0.0.16379 > config get requirepass (error) password again. 127.0.0.1redis-cli 6379 > exit login [root@shanxi src] #. / redis-cli verify password is aabbcc 127.0.0.1 auth "aabbcc" OK again check password as aabbcc, successfully set 127.0.0.1 redis-cli 6379 > config get requirepass 1) "requirepass" 2) "aabbcc" the answer to the question on how to set password protection in Redis is shared here. I hope the above content can help you to a certain extent, if you still have a lot of doubts to be solved, you can follow the industry information channel to learn more related knowledge.

Tags: Password password protection protection question login central again more help answer easy secure successful easy content customer client buddy partner method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Shulou Information vpn Apple