Modify the default administrator password

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

You can modify the Redis password by following these steps:

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

      requirepass NEWPASSWORD
  • Then restart the Redis server:

      $ sudo installdir/ 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 July 29, 2020