When Redis is installed, the client is logged on by default and no password is required to operate with the command. In some cases, for security reasons, we can set up password verification before any action is made after the client connects.
My side is the window system installed, modify the redis.windows.conf configuration file
# Require clients to issue AUTH <PASSWORD>before processing any other# commands. This might is usefulinchEnvironmentsinchwhich DoNot trust# Others with access to the host running Redis-server.## This should stay commented out forbackward compatibility and because most# people DoNot need auth (e.g. they run their own servers). # # Warning:since Redis isPretty fast an outside user canTryUp to# 150k passwords per second against a good box. This means, should# use a very strong password otherwise it 'll be very easy to Break. # # Requirepass Foobaredrequirepass hongda$123456
Set Requirepass to
Next you restart the Redis service
Client Licensing methods
(1) When logging in, use the-a parameter to specify the client password, as follows
(2) After logging in to the client, use the AUTH command to authorize, as follows
Http://www.cnblogs.com/hjwublog/p/5660578.html
Redis Security Settings