求助:tp5命令行执行找不到redis 扩展怎么解决

浏览:5976 发布日期:2018/09/29 分类:求助交流 关键字: t求助hinkphp5命令行找不到redis扩展怎么解决??
报错[BadFunctionCallException] not support: redis

ps:开启redis-server后直接在浏览器执行能成功<?php
/**
* User: xym
* Date: 2018/9/24
* Time: 下午12:13
*/
namespace app\index\controller;
use think\cache\driver\Redis;
use think\Controller;
use think\Queue;

class Test extends Redis{

public function index(){

// echo phpinfo();exit();
$redis=new Redis();
//$redis->connect('127.0.0.1',6379);
$redis->set('name','嘎嘣脆');
echo $redis->get('name');

}
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>