PHP安装redis扩展

1、安装redis扩展:https://blog.csdn.net/weixin_42047371/article/details/103961146

2、扩展thinkphp5的redis类方法:https://www.cnblogs.com/yxhblogs/p/7224739.html

3、windows安装redis:https://www.cnblogs.com/skmobi/p/11696620.html

 

 

 

4、linux安装redis扩展遇到的问题:

https://segmentfault.com/q/1010000019735774/a-1020000021213100

解决后出现下面这个问题:

PHP Warning:  PHP Startup: Unable to load dynamic library 'redis' (tried: /opt/remi/php73/root/usr/lib64/php/modules/redis (/opt/remi/php73/root/usr/lib64/php/modules/redis: cannot open shared object file: No such file or directory), /opt/remi/php73/root/usr/lib64/php/modules/redis.so (/opt/remi/php73/root/usr/lib64/php/modules/redis.so: undefined symbol: php_msgpack_serialize)) in Unknown on line 0

解决方法:在目录etc/php.d新建文件20-msgpack.ini,加入内容:extension=msgpack

 

5、出现以下问题的

  宝塔redis报错auth认证失败解决笔记

 

 

 解决方法:

 

posted @ 2021-02-03 09:42  遥识楚人家  阅读(236)  评论(0编辑  收藏  举报