2.13.9.8. Setting up Redis in Magento
- Connect to hosting via SSH.
- Change to the directory where it was installed CMS Magento by running the command:
cd example.com/www/
Instead
example.com/www/
specify the path to the desired directory. - Tune Redis possible for system caching and for page caching. Both types of caching can work in parallel if different database identifiers are specified for them. To configure the appropriate caching, run the desired command:
bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=/home/example/.system/redis.sock --cache-backend-redis-db=X
In the team instead of
example
indicate hosting account name, in which the site is located, and instead ofX
— specify the desired Redis database identifier.bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=/home/example/.system/redis.sock --page-cache-redis-db=X
In the team instead of
example
indicate hosting account name, in which the site is located, and instead ofX
— specify the desired Redis database identifier.