sudo apt update
sudo apt install redis-server
sudo nano /etc/redis/redis.conf
supervised systemd
maxmemory 128M
maxmemory-policy allkeys-lfu
sudo systemctl restart redis.service
sudo systemctl status redis
redis-cli
andping
wget https://github.com/nicolasff/phpredis/archive/master.zip
apt install unzip
sudo apt install php-dev
cd phpredis-master
phpize
./configure
make
sudo make install
sudo echo "extension=redis.so" > /etc/php/7.x/apache2/conf.d/redis.ini
create a redis.inisudo service redis-server restart
apache2ctl restart
Hi, Alexander, could you please recheck the PHP-Redis link once more.. I think it's dead and the new link is here: https://github.com/phpredis/phpredis/archive/develop.zip
could you please recode PHP-redis for me. Thanks!