创建nfs服务见:https://blog.csdn.net/rockstics/article/details/78769281
windows2008 挂载nfs
管理员权限打开cmd命令行提示符:
- servermanagercmd.exe -install FS-NFS-Services ##安装nfs
- net use /persistent:yes ##允许开机启动
- mount 192.168.1.110:/nfs z: ##挂载至Z盘
第三步在页面配置如下:
点击开始 --> 网络 --> 映射网络驱动 --> ”文件夹“中写入自己的网络盘地址
Linux 挂载nfs
yum install rpcbind nfs-utils -y
systemctl start rpcbind
systemctl start nfs
systemctl enable nfs
设置开机挂载:
echo "192.168.1.110:/nfs /opt nfs defaults 0 0" >> /etc/fstab
mount -a