侧边栏壁纸
博主头像
晓果冻博主等级

行动起来,活在当下

  • 累计撰写 135 篇文章
  • 累计创建 16 个标签
  • 累计收到 91 条评论

目 录CONTENT

文章目录

nextCloud配置redis缓存

Administrator
2021-02-16 / 0 评论 / 1 点赞 / 621 阅读 / 2163 字
  1. 我的nextCloud是安装在docker中的,所以首先进入容器内

       docker exec -it nextCloud(你nextCloud容器名,或者对应的id也可以) /bin/bash
    
  2. 然后进如config目录找到config.php文件便捷image-20210314090937696

  3. 插入redis配置信息image-20210314091236898`

    'memcache.locking' => '\OC\Memcache\Redis','filelocking.enabled' => 'true','redis' => array(    'host' => '49.233.174.27',    'port' => 6379,    'password' => '123456',  ),
    

'memcache.locking’配置声明启用“Redis”缓存的文件锁 'memcache.local’配置声明启用本地式缓存使用“APCu” 'host':redis地址 'port':redis端口(redis默认端口6379) 'password':redis登录密码(redis没有密码的话可以删除本行) ```

  1. 然后保存配置输入exit退出容器,重启nextCloud即可

    image-20210314092149138

1

评论区