NFS services are file sharing between Linux and Linux, and the NFS service is easy to build.
Now how to build an NFS service in the ubuntu16.04 system, Ubuntu is easier to build than red Hat.
1. Install NFS Service
sudo Install Nfs-common
2. Modify the configuration file
sudo vim/etc/exports
The contents of the amendment are as follows:
/home * (rw,sync, No_root_squash)
The meaning of each paragraph is as follows, according to the actual modification
/Home : Shared directory * : Specifies which users can access * All users who can ping the same host 192.168. 1. * Specify the network segment in which the user can mount the 192.168. 1.12 Only the user can mount (RO,sync, No_root_squash): permission ro: Read-only RW: Read/write sync : sync no_root_squash: Do not lower the root user 's permissions 5 exports view
3. Restart the NFS service
sudo /etc/init.d/nfs-kernel-server restart
This is where the NFS service is built.
The following describes how clients access the server
1, check the client and server network connectivity (ping command)
Ping + Host IP
2. View the shared directory on the server side
SHOWMOUNT-E + Host IP
192.168.1.93192.168. 1.93:/home *
3. Mount the directory to a local
192.168.1.93:/home
4. Visit
Access the local MNT directory to access the directory shared by the server.
Ubuntu 16.04 NFS Service Build-up