VPS侦探论坛

 找回密码
 注册
查看: 3225|回复: 1

lnmp1.3 redis安装失败,求解

[复制链接]
发表于 2017-1-9 23:12:25 | 显示全部楼层 |阅读模式

lnmp 7.0.3环境,加redis运行正常
升级php 7.1以后,php找不到redis类,重新安装redis失败


Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/
Add to auto start...
Add redis service at system startup...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
Starting Redis server... done
Redis install failed!



用addons.sh uninstall redis卸载redis
You will uninstall Redis...

Press any key to start...or Press Ctrl+c to cancel
sRestarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm  done
Removing redis service at system startup...
Delete Redis files...
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Uninstall Redis completed.

在安装redis依然失败,

(编译安装phpredis扩展 https://github.com/phpredis)


求解
另外:
phpinfo没有reids
php -m没有redis
php-fpm日志没有错误

[ 本帖最后由 shyandsy 于 2017-1-10 00:10 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-1-10 08:48:55 | 显示全部楼层


1.3那时候还没有7.1,所有没有适配php7.1
需要修改一下include/main.sh
查找 zend_ext_dir="/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/"
再下面添加上zend_ext_dir="/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/"
elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.1.'; then
       zend_ext_dir="/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/"
再进行升级应该就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-28 01:17 , Processed in 0.026260 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表