git clone https://www.github.com/phpredis/phpredis.git
cd phpredis
phpize && ./configure && make && sudo make install
जोड़ें extension=redis.so
आपके php.ini
brew services restart [email protected]
make test
आप काम कर रहे हैं या नहीं, इसकी जांच कर सकते हैं
php -r "if (new Redis() == true){ echo \"\r\n OK \r\n\"; }"