[root@web01 src]# wget github.com/owlient/phpredis/tarball/master
[root@web01 src]# tar -xzvf master 
[root@web01 src]# cd owlient-phpredis-90ecd17/
[root@web01 owlient-phpredis-90ecd17]# /app/server/php/bin/phpize 
Configuring for:
PHP Api Version:         20121113
Zend Module Api No:      20121212
Zend Extension Api No:   220121212
[root@web01 owlient-phpredis-90ecd17]# ./configure --with-php-config=/app/server/php/bin/php-config
[root@web01 owlient-phpredis-90ecd17]# make && make install

 

[root@web01 owlient-phpredis-90ecd17]# ls /app/server/php/lib/php/extensions/no-debug-non-zts-20121212/
opcache.a  opcache.so  redis.so

 

[root@web01 owlient-phpredis-90ecd17]# egrep "redis" /etc/php.ini 
extension=redis.so

[root@web01 owlient-phpredis-90ecd17]# service php-fpm restart
Gracefully shutting down php-fpm . done
Starting php-fpm  done

 

 安装phpredis模块

相关文章:

  • 2022-03-03
  • 2022-02-23
  • 2021-08-04
  • 2021-07-14
  • 2021-08-16
  • 2021-09-27
  • 2021-07-16
  • 2022-12-23
猜你喜欢
  • 2021-09-18
  • 2021-08-28
  • 2022-12-23
  • 2021-09-03
  • 2021-12-10
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案