apt-get install nfs-kernel-server
systemctl start nfs-server
systemctl enable nfs-server
yum install nfs-utils - for centos
systemctl enable rpcbind
systemctl enable nfs-server
systemctl start rpcbind
systemctl start nfs-server
nano /etc/exports
### For specific ip
/var/html 192.168.0.150(rw,sync,no_root_squash)
### For all ip
/var/html *(rw,sync,no_root_squash)
exportfs -r
exportfs -a
exportfs
mount -t nfs 192.168.0.150:/var/html /var/html
### for showing mounts available
showmount -e 192.168.0.150