![如何在 NAS 目录中创建虚拟主机](https://linux22.com/image/1125088/%E5%A6%82%E4%BD%95%E5%9C%A8%20NAS%20%E7%9B%AE%E5%BD%95%E4%B8%AD%E5%88%9B%E5%BB%BA%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%9C%BA.png)
当我尝试设置虚拟主机时,我需要像这样更改根目录的权限:
sudo chown -R www-data:www-data /NAS/directory
sudo chmod 755 /NAS/directory
但每当我这样做时我总是收到如下错误:
chown:更改“/NAS/directory”的所有权:参数无效
chmod:更改“/NAS/directory”的权限:参数无效
为什么会发生这种情况?
我使用多个硬盘驱动器像这样设置了我的 nas 目录:
#External HDD's
UUID="54E1-D75E" /mount1 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
UUID="54F9-A540" /mount2 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
UUID="1B81-6E61" /mount3 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
UUID="54ED-E111" /mount4 exfat utf8,auto,rw,nobootwait,umask=0,sec=ntlm 0 0
#mount to NAS
mhddfs#/mount1,/mount2,/mount3,/mount4 /NAS fuse defaults,allow_other,nobootwait,nonempty 0 0