https://blog.csdn.net/weixin_44071851/article/details/93630468

经过一番折腾后,在树莓派上搭建完nextcloud,按照网上的教程,把nextcloud的数据文件换到外置硬盘中,重启nginx发现nc进入后报错

Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory.

然后在新的数据目录下按照文章开头的方法,操作了一番还是不行,还是报那个错,后来想到之所以创建完了还不行,应该是nc访问不到.ocdata文件 也就是没权限,最后发现是/nasfs/nextdata/data这个目录没权限 所有者是root权限码是750所以www用户自然进不去

之前用宝塔搭建nc, 进nc之后报服务器内部错误 也就是nginx 下的nextcloud没权限

https://www.hantao.org/share/gzjd/1829.html

90文件管理设置[/www/wwwroot/nc.liber8.top]权限为[777]所有者为[www]2021-05-04 17:10:52