#若挂载失败,错误提示如下:
mount: wrong fs type, bad option, bad superblock on 192.168.1.2:/xxx/xxx,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try dmesg | tail or so
#安装 nfs-utils 即可
yum install nfs-utils
#若挂载失败,错误提示如下:
# mount 192.168.1.2:/home/vsftpd/pactera /home/rddb/upload
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
执行命令后添加“-o nolock”
# mount 192.168.1.2:/home/file /home/upload -o nolock
2)编辑fstab文件挂载
# vi /etc/fstab
添加
192.168.1.2:/home/file /home/upload nfs rw,auto 0 1
保存后执行挂载
# mount -a
#若挂载失败,错误提示如下:
# mount -a
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
fstab文件中添加“nolock”参数
192.168.1.2:/home/file /home/upload nfs rw,auto,nolock 0 1
保存后执行挂载
mount -a