After the system is installed, it is best to perform the following commands to update the software
sudo apt-get update
Installing PHP5-CLI
Apt-get Install PHP5-CLI
Download Phpredis
wget https://github.com/nicolasff/phpredis/zipball/master-o php-redis.zip
Extract
Unzip Php-redis. zip apt-get install unzipunzip php
Go to unzip directory, execute Phpize
CD phpredis-phpredis-b718ce0/phpize
Prompt error:
Command ' Phpize5 ' from the package ' Php5-dev ' (main)
Install this: Php5-dev
Apt-get Install Php5-dev
To find the configuration file:
Find/-name php-config
./configure--with-php-config=/usr/bin/php-config
Generate shared libraries (such as redis.so)
Makemake test
Installation:
Make install
Check whether the installation was successful:
[Email protected]:/home/www/php_test# php-m | grep Redis
Redis
Installation Complete
Learn from the documentation:
Http://doc3.workerman.net/appendices/install-extension.html
Basic knowledge of PHP ———— PHP5-CLI installation and installation of Phpredis