文章

NextCloud安装之后优化配置

上传文件出现 未知错误

  • Nginx默认 请求体大小有限
    • nginx.conf
      • client_max_body_size 1024M;
        • 用于http、server

下载文件时限速: 1M

如果是容器启动,以www-data用户登录,进入 /path/to/*/html 目录

docker exec -u 33 -it 651c7df95718 /bin/bash php occ config:app:set files max_chunk_size –value 0

添加文件锁(使用Redis做缓存)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
  'memcache.distributed' => '\OC\Memcache\Redis',
  'memcache.locking' => '\OC\Memcache\Redis', 
  'filelocking.enabled' => 'true',
  'redis' =>
  array (
    'host' => '10.0.24.14',
    'port' => 6379,
    'password' => '******',
    'dbindex' => 10,
    'timeout' => 0.0,
    'read_timeout' => 0.0,
  ),

# host地址: 刚开始的时候用的宿主机的: 127.0.0.1,因为在容器中,连接不上导致一直报错
本文由作者按照 CC BY 4.0 进行授权