Magento2 Redis
Redis + Magento 2¶
First install redis yum install redis
Make sure it is running systemctl status redis
Configure magento to use redis for caching
bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=1
bin/magento setup:config:set --session-save=redis --session-save-redis-host=127.0.0.1 --session-save-redis-log-level=3 --session-save-redis-db=2
Clear magento cache and session folders
\rm var/session/*
\rm var/cache/*
\rm -rf var/cache/*
ll var/session/
ll var/cache/
tree var/cache/
find var/cache/
find var/cache/ | wc -l