Roughly divided into the following three steps:
First, start the NFS server
Second, start the NFS client
Third, mount the NFS directory
tool:
win10, virtual machine Ubuntu18.0 system
One,
Start the NFS server linux:
The following are the Ubuntu operating system command: #sudo apt-get install nfs-kernel-server
You need to select a file system mounted #vim / etc / exports (may have to use other editors)
Edit the last line of the configuration file to add / fnsroot * (rw, sync, no_root_squash)
Then save
You just have to create a configuration directory add
mkdir /fnsroot
Restart NFS Services
#/etc/init.d/nfs-kernel-server restart
two,
Start windos NFS Client service:
Open the Control Panel -> Programs -> Open or close the windows function -> NFS Client
After saving remember to restart your computer.
three:
Mounting NFS directory
The windows have to press the following command
win+R->cmd
mount IP: / nfsroot X: (IP NFS server to get IP, / nfsroot you have to mount the directory path)
Mounted successfully, open my brain point, you can see X in your network location: drive the