windows2019:
powershell中安装nfs客户端:
Install-WindowsFeature -Name NFS-Client
在cmd中(powershell中不可以)挂载nfs磁盘:
mount \\server_ip\shared_directory z:
设置开启自动挂载:
在「开始」菜单中打开「运行」,输入「shell:startup」并回车,这样就会打开「开机启动」文件夹
centos7:
客户端安装:
yum install nfs-utils
临时挂载nfs磁盘:
sudo mount -t nfs SERVER_IP:/shared_directory /local_mount_point
开机自动挂载:
vi /etc/fstab
SERVER_IP:/shared_directory /local_mount_point nfs rw,sync 0 0