靳闯博客 记录是一种习惯,分享是一种态度
  • 波浪
  • 波浪
  • 波浪
  • 波浪
php7安装redis扩展
发表于: | 分类: 技术积累 | 标签: php redis | 评论:0 | 阅读: 178

下载扩展:phpredis-php7

unzip phpredis-php7.zip
cd phpredis-php7
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
make install

修改php.ini 启用:

vim /usr/local/php7/lib/php.ini
#在末尾加上:

extension_dir = "/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/"
extension = redis.so

重启php,查看phpinfo是否生效

[root@jinc ~]# /usr/local/php7/bin/php -m |grep redis
redis

php-redis



如果这篇文章帮助到了你,我感到十分荣幸!

或许你不想写点什么......

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif

站点地图 网站地图
豫ICP备17003270号 | Copyright © 2017-2018 💖 靳闯博客
Typecho🍹Sgreen
TOP