Change redis password

Change redis password

1- Find redis config file

On Linux:

usually it is at:

/etc/redis/redis.conf

On MacOS

if you are using Homebrew you will find it at:

/opt/homebrew/etc/redis.conf

2- find requirepass

uncommit it if it is commented by removing the hash # before it and set the password after requirepass word

# IMPORTANT NOTE: starting with Redis 6 "requirepass" is just a compatibility
# layer on top of the new ACL system. The option effect will be just setting
# the password for the default user. Clients will still authenticate using
# AUTH <password> as usually, or more explicitly with AUTH default <password>
# if they follow the new protocol: both will work.
# 
# The requirepass is not compatable with aclfile option and the ACL LOAD
# command, these will cause requirepass to be ignored.
# 
# requirepass XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

3- Restart redis server and now it is done 😉 .

AHMED ELKHAYYAT
https://elkhayyat.me

I am a very keen individual that enjoys developing Python Programming Language. I have always loved computers and technology, ever since childhood. A team player who loves to work with other people on innovative projects and to take on challenges as an opportunity to grow as an individual in both a professional and personal capacity.

Leave a Reply

Select your currency
USD United States (US) dollar