提示文件被锁定
sudo -u nginx ./occ maintenance:mode --on mysql DELETE FROM oc_filecache; sudo -u nginx ./occ maintenance:mode --off
提示没有权限创建目录或文件
首先保证www-data或nginx用户拥有目录的正确的权限
# Setting permissions for the folders (mimetype =2): update oc_filecache set permissions = '31' where permissions like '17' and path like 'files/%' and mimetype like '2'; # Setting permissions for the files (all others mimetypes): update oc_filecache set permissions = '27' where permissions like '17' and path like 'files/%';