phpredis扩展名不起作用,无法加载"redis.so" [英] phpredis extension doesn't work, unable to load 'redis.so'

查看:399
本文介绍了phpredis扩展名不起作用,无法加载"redis.so"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过yum安装了nginx,php,php-fpm,php-pecl-redis.

I installed nginx, php, php-fpm, php-pecl-redis by yum.

除了最后一个,所有的人都可以工作.

All of them work but the last one.

当我运行/usr/sbin/php-fpm时,我得到了:

When I run /usr/sbin/php-fpm, I got this:

PHP警告:PHP启动:无法加载动态库'/usr/lib/php/modules/redis.so'-/usr/lib/php/modules/redis.so:未定义符号:igbinary_unserialize in未知在线0

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/redis.so' - /usr/lib/php/modules/redis.so: undefined symbol: igbinary_unserialize in Unknown on line 0

我不知道igbnary_unserialize的含义以及解决方法.

I don't know what igbnary_unserialize means and how to fix it.

我检查了正确路径下的redis.so文件.我将extension=redis.so添加到php.ini

I checked the redis.so file under right path. I add extension=redis.so to php.ini

PHP版本:5.3.3

PHP version: 5.3.3

PhpRedis版本:2.2.7

PhpRedis version: 2.2.7

推荐答案

我遇到了同样的问题.我在Ubuntu 16.04 LTS上.运行sudo apt-get install php-igbinary为我解决了该问题.我还有其他问题,但这就是解决这个问题的方法.

I had the same issue. I'm on Ubuntu 16.04 LTS. Running sudo apt-get install php-igbinary resolved the issue for me. I have other issues, but that's what solved this one.

这篇关于phpredis扩展名不起作用,无法加载"redis.so"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆