There are no redis and memcahe in the lnmp environment of the centos system. I compiled and installed it. Can PHP support redis and memcache extensions?
ringa_lee2017-05-19 10:08:10
0
3
721
I am using Alibaba Cloud's redis and memcahce services. I do not need to install these two in the environment, but I need to make PHP support these two extensions
It can be supported. First, PHP installs the extensions of redis and memcahce. Then you may need to modify the ini file of php-fpm and add the corresponding .so to enable the extension
You need redis and memcahce; PHP support expansion of redis and memcahce Then you already have these two from Alibaba Cloud, then you only need to install the PHP expansion: http://pecl.php.net/package/m. .. http://pecl.php.net/package/r... Then configure the connection
redis PHP extension, you can use it without relying on libraries
pecl install redis
Or just download the source code package and install itmemcache needs to install dependent libraries first (the following are the names in the Debian series, other systems may be different)
Then just use pecl or source code to install it
It can be supported. First, PHP installs the extensions of redis and memcahce. Then you may need to modify the ini file of php-fpm and add the corresponding .so to enable the extension
You need redis and memcahce; PHP support expansion of redis and memcahce
Then you already have these two from Alibaba Cloud, then you only need to install the PHP expansion:
http://pecl.php.net/package/m. ..
http://pecl.php.net/package/r...
Then configure the connection