私有网盘nextcloud 12的问题处理及优化

问题1:如果你在管理界面看到如下提示

No memory cache has been configured. To enhance your performance please configure a memcache if available.


答:需要我们安装缓存了,如果你之前是按照我的部署方法部署的,只需要修改一个php文件即可,支持的缓存分为以下几种,我们默认安装的是第一种

  • APCu, APCu 4.0.6 and up required.

    A local cache for systems.

  • Memcached

    Distributed cache for multi-server Nextcloud installations.

  • Redis, PHP module 2.2.6 and up required.

    For distributed caching.

需要安装 php-pecl-apcu,建议按照我的部署文档安装,因为版本的问题。

yum install php70w-pecl-apcu -y

然后重启nginx服务,然后修改php配置文件/nextcloud/config/config.php,增加如下配置

'memcache.local' => '\OC\Memcache\APCu',