需提前安裝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;
團隊分紅就可以初始化了