sudo apt update sudo apt install redis-server
sudo nano /etc/redis/redis.conf
change supervised no to supervised systemd
sudo systemctl restart redis.service sudo systemctl status redis redis-cli sudo systemctl restart redis.service sudo apt install net-tools sudo netstat -lnp | grep redis php bin/magento cache:flush
Change app/etc/env.php
'cache' => [
'frontend' => [
'default' => [
'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
'backend_options' => [
'server' => '127.0.0.1',
'database' => '0',
'port' => '6379'
],
],
'page_cache' => [
'backend' => 'Magento\\Framework\\Cache\\Backend\\Redis',
'backend_options' => [
'server' => '127.0.0.1',
'port' => '6379',
'database' => '1',
'compress_data' => '0'
]
]
],
'allow_parallel_generation' => false
],
