Step 3 : Use and Check working of Redis
With below command, you can check the working of Redis server and also you will see the values or parameters of redis.
Step 4 : Set Redis on boot
After setting up Redis server make sure you will add the redis_6379 service in the auto start which means whenever you will reboot your server this service will start in the boot.
Use below command :
- update-rc.d redis_6379 defaults
Step 5 : Secure Redis Server
Security is a very important part when you setting up any service on a production server so always make a habit of running such services on private ip of your server or 127.0.0.1.
For binding localhost IP or server private IP Open the Redis configuration file for editing:
#If below the line is commented then uncomment it.
Save and close the file.
Restart service to reflect the configuration changes,
- service redis_6379 restart
Here, we have completed the process to install & configure Redis Cache Server.
The configuration of Redis with Magento
Step 1 : Enable the Cm_RedisSession module
The Cm_RedisSession module is disabled by default.
Magento disables the module to avoid non-essential connection tries to Redis when you choose to use a different session storage method.
To enable open Cm_RedisSession.xml file which is resides under “app/etc/modules/” directory.