我尝试安装 NFS,但无法通过此步骤配置/etc/exports
该文件如下所示:
/home/MYUSER/Documents 192.168.0.2(rw, sync, no_subtree_check)
但是当我重新启动nfs-kernel-server
或运行时exportfs -ra
出现以下内容:
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... exportfs: /etc/exports:1: syntax error: bad option list
[fail]
答案1
您的导出语法不正确 – 选项列表中不能有任何空格。请尝试:
/home/MYUSER/Documents 192.168.0.2(rw,sync,no_subtree_check)