Next, compile phpredis to PhP extension,
For more information, see http://skirt.sinaapp.com /? P = 110
Home page of The phpredis project: https://github.com/owlient/phpredisto download the latestCodeIn fact, it has not been updated for more than a year.
Phpredis provides convenient operations for redis services. By the way, you can contact how to compile the extension on centos.
First download owlient-phpredis-2.1.1-1-g90ecd17.tar.gz and copy the file to the ext directory of your PHP source code directory,
Tar-zxvf owlient-phpredis-2.1.1-1-g90ecd17.tar.gz;
CD owlient-phpredis-90ecd17
You can see:
/Usr/local/PHP/bin/phpize
./Configure-with-PHP-Config =/usr/local/PHP/bin/PHP-config
Make & make install
Then make install to copy the generated. So file to the PHP extension directory.
Modify the php. ini settings and restart PHP.
Extension = "/usr/local/PHP/lib/PHP/extension/no-debug-non-zts-20060613/redis. So"
View phpinfo ();
You Can See