问题一:PHP 内存限制至少 512M
打开 /etc/php.ini 找到
memory_limit = 128M 改成 512M
问题二:配置缓存
打开 /var/www/html/nextcloud/config/config.php
在最后添加:
'memcache.local'=> '\OC\Memcache\APCu',
添加此行就可以解决缓存错误问题 'memcache.locking'=> '\OC\Memcache\Redis',
'redis'=> array('host'=> 'localhost',
'port'=> 6379,
),
'memcache.local' => '\OC\Memcache\APCu',
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => ['host' => 'localhost',
'port' => 6379,
],
问题三:apache 设置问题Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains˓→"
Require all granted
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
问题四: PHP 的 OPcache 模块未载入
yum install -y php-opcache
再check后根据问题项修改下面文件中相关内容
编辑 /etc/php.d/10-opcache.ini
问题四:数据库 occ db:convert-filecache-bigint 错误
cd /var/www/html/nextcloud
sudo -u apache php occ db:convert-filecache-bigint
nextcloud 21 版本需要在 config.php新增以下设置'default_phone_region' => 'CN',
解决APP连不上库的问题在config.php添加proxy'proxy => '192.168.110.1:1281',
近期评论