How to add redis extension Module to php
This article is about how php adds redis extension modules. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Download address:
Http://pecl.php.net/get/redis-2.2.5.tgz
[root@study package] # tar zxf redis-2.2.5.tgz-C.. / [root@study package] # cd.. / redis-2.2.5/ [root@study redis-2.2.5] # / usr/local/php/bin/phpizeConfiguring for:PHP Api Version: 20100412Zend Module Api No: 20100525Zend Extension Api No: 220100525 [root@study redis-2.2.5] # / configure-- with-php-config=/usr/local/php/bin/php-config [ Root@study redis-2.2.5] # make Make install [root@study redis-2.2.5] # mv / usr/local/php/lib/php/extensions/no-debug-zts-20100525/redis.so / usr/lib64/ [root@study redis-2.2.5] # vim / usr/local/php/php.iniextension_dir = / usr/lib64/extension = redis.so [root@study ~] # / usr/local/php/bin/php-m | grep redisredis## is loaded successfully. Restart nginx and check the phpinfo page. Thank you for reading! This is the end of this article on "how to add redis extension modules for php". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!