Build Redis and PHPRedis from source codes

Install Redis

For more info please check http://redis.io/topics/quickstart

Copy the Redis server and the command line interface to “/usr/local/bin/”

Run

Check

 Install phpredis

Copy the “redis.so” to “/usr/local/php5/lib/php/extensions/no-debug-non-zts-20131226/”

Config php.ini

Restart php-pfm

Then you can use phpinfo() to test.

Leave a Reply

Your email address will not be published. Required fields are marked *