需提前安装redis
安装完毕后查看redis端口号
在微擎data/config.php中添加如下
// -------------------------- CONFIG REDIS --------------------------- // $config['setting']['redis']['server'] = '127.0.0.1'; //默认本地,你也可以用云库地址(远程) $config['setting']['redis']['port'] = 6379; //redis默认端口 $config['setting']['redis']['pconnect'] = 1; $config['setting']['redis']['auth'] = ''; //redis密码, 默认为空 $config['setting']['redis']['requirepass'] = ''; //redis密码,默认为空,没用人人商城删除这行 $config['setting']['redis']['timeout'] = 1;
团队分红就可以初始化了