【问题标题】:Nextcloud not connecting to RedisNextcloud 未连接到 Redis
【发布时间】:2021-02-04 04:01:51
【问题描述】:

在 Nextcloud 安装中我收到错误

No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation.

所以我已经安装了 APCu、Redis、redis-php 并在 NCs config.php 中进行了所需的设置

 'memcache.local' => '\OC\Memcache\APCu',
    'memcache.locking' => '\OC\Memcache\Redis',
    'memcache.distributed' => '\OC\Memcache\Redis',
    'filelocking.enabled' => 'true',
    'redis' => 
    array (
      'host' => '127.0.0.1',
      'port' => '6379',

当我测试redis连接时

redis-cli ping

我得到一个

PONG

(这适用于 localhost 和 unix 套接字)

但是 Nextcloud 显然没有连接到 Redis。

http用户是redis组的成员。

php-redis 模块被激活。

【问题讨论】:

    标签: php redis nextcloud


    【解决方案1】:

    解决了。问题在于上述代码在 Nextcloud 的 config.php 中的位置。 现在它按预期工作了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-09
      • 2021-03-13
      • 1970-01-01
      • 1970-01-01
      • 2021-06-27
      • 2018-07-29
      相关资源
      最近更新 更多