1 installation NFS (Network File system) server
Principle of sharing:
installation command:
sudo apt-get install Nfs-kernel-server
2 Set /etc/exports configuration file
Add the following line configuration
which :
* represents all IP, If you want to specify IP , you can put * for your own. IP address.
RW: represents read-only permissions, and if you want to become read-only, modify the configuration to ro
Sync: represents the way synchronization is. Anyone who modifies this directory can be seen by everyone else.
3. Create an NFS directory in the user directory
4. Restart the server and discover that there are 4 OK, this time the configuration is successful.
5. Disk mount (simulate below, mount the directory to a different location on a computer)
6. The directory on the other computer on the disk network. Require other computers on the network to start sharing. Only if the computer on the network is shared, can the machine be able to mount the shared directory on the network to its own computer
2Ubuntu NFS Server Setup, Linux multiple computers shared directory