thinkphp5操作redis 报错$this->handler->connect($this->options['host'], $this->options['port'], $this->op

版权声明:本人原创文章,转载时请保留所有权并以超链接形式标明文章出处 https://blog.csdn.net/qq_37138818/article/details/83657079

如果出现   $this->handler->connect($this->options['host'], $this->options['port'], $this->options['timeout']);

查看是否安装了redis扩展  参考地址:https://www.kancloud.cn/he_he/thinkphp5/825063

以上都没有问题  在看下是否开启了Redis服务

在执行该程序   应该是没有问题的 

猜你喜欢

转载自blog.csdn.net/qq_37138818/article/details/83657079