googleodoo

Modify the default administrator password

You can modify the Redis password by following these steps:

  • Edit the requirepass directive in the /opt/bitnami/redis/etc/redis.conf file. Replace the NEWPASSWORD placeholder with the value of your new password:

      requirepass NEWPASSWORD
    
  • Then restart the Redis server:

      $ sudo /opt/bitnami/ctlscript.sh restart redis
    
  • (Optional) If you don’t want to restart the Redis service, appart from changing the configuration file, you can execute the following command to change the password at runtime. Replace the CURRENTPASSWORD and NEWPASSWORD placeholders with the values of the current password and your new password:

      $ redis-cli -a CURRENTPASSWORD CONFIG set requirepass NEWPASSWORD
    
Last modification December 21, 2022