Modify the Redis persistence mode
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 change the modes to adapt Redis persistence to your needs. There are multiple possibilities to do so. Find below how to enable AOF as an example:
-
Edit the configuration file installdir/redis/etc/redis.conf. Change the appendonly configuration directive from no to yes:
appendonly yes
-
Edit the Redis configuration file installdir/redis/etc/redis.conf. Change the appendonly configuration directive from no to yes as shown below:
appendonly yes
This change will apply when you restart the server.
-
(Optional) To apply the change inmediately, execute the following command. Replace the YOURPASSWORD placeholder with the value of your password:
$ redis-cli -a YOURPASSWORD CONFIG set appendonly yes
For more information on this, please check the Redis official documentation about Redis Persistence.