admin 发表于 2024-11-10 21:55:56

修改数据库、redis相关配置,对应商城操作步骤

mysql配置路径/database/config.php

redis配置,如下图所示


https://yunzmall.obs.cn-south-1.myhuaweicloud.com/images/10/2022/01/e58c99bcefa1f5c9fba7868b59edd896.png


微擎:
mysql、redis配置文件:/商城路径/data/config.php
// -------------------CONFIG REDIS------------------- //
$config['setting']['redis']['server'] = '127.0.0.1';
$config['setting']['redis']['port'] = 6379;
$config['setting']['redis']['pconnect'] = 0;
$config['setting']['redis']['timeout'] = 1;
$config['setting']['redis']['auth'] = '';
$config['setting']['redis']['session'] = 1;
$config['setting']['redis']['database'] = 2;
$config['setting']['redis']['cache'] = 3;


修改完参数务必把配置缓存文件删除
微擎路径:/商城路径/addons/yun_shop/bootstrap/cache/config.php

芸众框架路径:/商城路径/bootstrap/cache/config.php
页: [1]
查看完整版本: 修改数据库、redis相关配置,对应商城操作步骤