CentOS 7 挂载NFS

安装NFS服务
yum install nfs-utils -y

创建挂载目录,直接挂载NFS
mount -t nfs 10.15.2.3:/volume1/OA-NAS/File-Share /mnt/File-Share

如果直接挂载报错“mount.nfs: Protocol not supported”,那需要-o vers指定NFS版本
示例:
mount -t nfs -o vers=4.1 10.15.2.3:/volume1/OA-NAS/File-Share /mnt/File-Share

fstab自动挂载示例:
10.15.2.3:/volume1/OA-NAS/File-Share /mnt/File-Share nfs defaults,vers=4.1 0 0