------解决方案-------------------- 也许kernel里没支持nfs.
------解决方案-------------------- 尝试一下关闭服务器的防火墙
------解决方案-------------------- 我觉得是你 mount 命令的参数不对,你用 mount -h 看看 mount 的参数选项。
可以试试用下面的命令看能不能mount上: mount -t nfs -o tcp 192.168.1.102:/home/work /mnt/nfs
------解决方案-------------------- 运行 mount -h 看看mount的参数有哪些,像比如我板子是这样的:
Usage: mount [flags] DEVICE NODE [-o options,more-options]
Mount a filesystem. Filesystem autodetection requires /proc be mounted.
Options: -a Mount all filesystems in fstab -f don't mount -r Read-only mount -t fs-type Filesystem type -w Read-write mount (default) -o option: loop Ignored (loop devices are autodetected) [a]sync Writes are asynchronous / synchronous [no]atime Disable / enable updates to inode access times [no]diratime Disable / enable atime updates to directories [no]dev Allow use of special device files / disallow them [no]exec Allow use of executable files / disallow them [no]suid Allow set-user-id-root programs / disallow them [r]shared Convert [recursively] to a shared subtree [r]slave Convert [recursively] to a slave subtree [r]private Convert [recursively] to a private subtree [un]bindable Make mount point [un]able to be bind mounted bind Bind a directory to an additional location move Relocate an existing mount point remount Remount a mounted filesystem, changing its flags ro/rw Mount for read-only / read-write
There are EVEN MORE flags that are specific to each filesystem You'll have to see the written documentation for those filesystems
你可以试试 mount -t nfs -o loop 192.168.1.102:/home/work /mnt/nfs 再看看。
------解决方案--------------------