lnmp1.3 redis安装失败,求解
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-fpmdone
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-fpmdone
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 编辑 ] 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/"
再进行升级应该就可以了
页:
[1]