Advertisement

安装 CentOS 7 和 PHP 7.4 上的 Redis 扩展

阅读量:

在Centos7系统环境下,对php7.4版本进行redis扩展的配置操作

复制代码
    ----查看php服务
    #systemctl list-unit-files|grep php
    php-fpm.service                               bad     
    php74-php-fpm.service                         disabled
    ----本机安装的是php74
    
    
    ----在http://pecl.php.net/package/redis找到合适的redis扩展的版本
    #wget http://pecl.php.net/get/redis-5.3.5.tgz
    #tar -zxvf redis-5.3.5.tgz
    #cd redis-5.3.5
    
    
    寻找phpize的位置 
    #find / -name phpize
    /opt/remi/php74/root/usr/bin/phpize
    
    
    #sudo /opt/remi/php74/root/usr/bin/phpize
    Can't find PHP headers in /opt/remi/php74/

全部评论 (0)

还没有任何评论哟~