Configuring NFS server in Linux

1、 Install services for NFS

sudo apt-get install nfs-kernel-server rpcbind

(by the way, you can start the SSH service sudo apt get install openssh server)

2、 NFS profile

Open profile

sudo vim /etc/exports

Add server folder path

/home/zwz/linux/nfs *(rw,sync,no_root_squash)

As above, my path is/home/ZWZ/Linux/NFS

3、 Restart NFS service

sudo /etc/init.d/nfs-kernel-server restart

4、 Experimental test

1. Copy files to the NFS folder (such as zimage)
2. The client can use the corresponding NFS command to try.

Read More: