1.软件商店,找到你网站使用的php版本,点击设置
:-: ![](https://i.vgy.me/EwRMpO.png)
2.安装扩展,安装redis!
:-: ![](https://i.vgy.me/UHo5NE.png)
3.打开你微擎文件,找到data文件夹里的config.php文件
将下图所示的mysql改成redis
在最下面添加以下内容:
```
// -------------------------- CONFIG REDIS --------------------------- //
$config['setting']['redis']['server'] = '127.0.0.1';
$config['setting']['redis']['port'] = 6379;
$config['setting']['redis']['pconnect'] = 1;
$config['setting']['redis']['timeout'] = 30;
$config['setting']['redis']['session'] = 1;
```
:-: ![](https://i.vgy.me/xxXO4A.png)
**注意:服务器安全组需要开启6379端口**