Sea*_*ham 4 server nfs fstab 14.04
在 Ubuntu 14.04 服务器中,我使用以下命令正确安装了共享:
sudo mount -a 192.168.10.5:/mnt/sf_nas/movies /mnt/movies
Run Code Online (Sandbox Code Playgroud)
但是,当我将以下行添加到/etc/fstab并重新启动时,未安装共享:
192.168.10.5:/mnt/sf_nas/movies /mnt/moviesnfs auto,noatime,nolock,bg,nfsvers=4,intr,tcp,actimeo=1800 0 0
Run Code Online (Sandbox Code Playgroud)
谁能告诉我我在这里想念什么?提前致谢!
nfsvers=4如果您的 NFS 服务是版本 3,则设置会导致挂载失败。您需要设置nfsvers=3,或者根本不设置它(来自man nfs):
nfsvers=n The NFS protocol version number used to contact the
server's NFS service. If the server does not support
the requested version, the mount request fails. If this
option is not specified, the client negotiates a
suitable version with the server, trying version 4
first, version 3 second, and version 2 last.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8972 次 |
| 最近记录: |