CentOS 7 & php7.2 mounting extensions phpredis
1, Develop-download phpredis
CD / tmp
wget https://codeload.github.com/phpredis/phpredis/zip/develop
1.1, if the system has not installed the zip, unzip the installation , zip decompression tool
yum -y install the unzip ZIP
2, unzip the package phpredis-develop
the unzip phpredis-develop.zip
2.1, unzip will phpredis-develop a catalog of more. Enter the directory
cd phpredis-Develop
3, install phpredis expand
3.1, locate php-config path
find / -name php-config
example: I was: / usr / local / PHP / bin / php-config
3.2, start installing this extension [ when we phpredis-develop directory]
3.2.1, execute ./configure php-config file and specify the path
/ PHP / bin / php-config ./configure --with-php-config = / usr / local
3.2.2 , compile and install
sudo make && make install
after the successful outputs generated redis.so extension files in which directory, such as:
Shared Extensions the Installing: / usr / local / PHP / lib / PHP / Extensions / NO-Debug-ZTS-20,170,718 /
. 4, modify php.ini file extension is added redis
/usr/local/php/etc/php.ini vim
added
= redis.so extension
5, execute / usr / local / php / bin / php -m to see whether redis extension installed
======================== ================
other:
when installing php-redis if extended again in php-redis-extracting package, due to the executed make & make install command before you make needs to be performed under clean clear before the scene.
Otherwise it will report the error:
PHP Warning: PHP the Startup: Unable to the Load Dynamic Library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/"xcache.so "' - / usr / local / lib / php / extensions / no-debug-non-zts-20090626 / "xcache.so": can not open shared object file: No such file or directory in Unknown on line 0
Note:
compile after installing the plug-php / usr / local / php / bin / php -v to check reported above error solution
When to make the compiler need to install the plug-in, first, make information before make clean removal.
Were again make / make install to pass.
CentOS 7 & php7.2 mounting extension php-redis
Guess you like
Origin www.cnblogs.com/deverz/p/10984229.html
Recommended
Ranking