PHP installation add extension php-redis

references:

https://blog.csdn.net/will5451/article/details/71086420

 

  tar  -zxvf  redis-2.2.8.tgz

     cd redis-2.2.8

     /usr/local/php/bin/phpize #generated                       with phpize

    ./configure --with-php-config=/usr/local/php/bin/php-config      #配置

     make 

      make  install

    Download and install the extension here

5. Configure the php.ini file so that php can support redis extensions

   vim  /etc/php.ini

   Add this line in: extension = redis.so

  restart the service;

  Test phpinfo(); now you can see the redis extension support;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325373970&siteId=291194637