: This article describes how to install the redis extension component in php5 + in CentOS 67. if you are interested in the PHP Tutorial, refer to it. Go to the official redis website, click the clients link, and click the PHP item in Browse by language. take phpredis as an example. open the extension component link and download the extension component from github.
After the download is complete, decompress the package to obtain the phpredis folder and enter.
Run phpize to obtain configure.
Run the configure script after obtaining configure.
./configure --enable-redis-igbinary
An error may be reported during installation. Currently, there are two types of errors:
Cannot find php-config. Please use-with-php-c
First use find/-name php-config to find the php-config path, find the path, and add the-with-php-config parameter. The value is the php-config path.
Checking for igbinary between Des... Configure: error: Cannot find igbinary. h
This error is reported when the igbinary component is not installed. you can download it from the php official website.
Download the package, decompress the package, and enter igbinary to run phpize to obtain configure./configure-with-php-c & make install.
After the configuration is complete, run make & make install.
Finally, open the php configuration file in the text editor and add the following to the php configuration file:
extension=igbinary.so
extension=redis.so
Then create a phpinfo script. Then restart the environment.
After the environment is restarted, run the phpinfo script to search for redis items and igbinary items. if you can find redis items and igbinary items, the installation is successful.
The above steps are successfully executed with the root permission in CentOS6.7 + nginx + php-fpm + php5.4.45
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above section describes how to install the redis extension component in php5 + in CentOS 67, including some content. I hope my friends who are interested in the PHP Tutorial can help me.