3 November 2019

Setup Network File System(NFS) Client and Server on Ubuntu

server side run the following commands.

apt install nfs-kernel-server

vi /etc/exports

add /path/you/want/to/share/with/client,sync,no_root_squash,no_subtree_check)

save it

run exportfs -v
run exportfs -ra

client side commands

apt install nfs-common

mount -t nfs -o vers=3 /local/path

for persistent mount, add entry in fstab.
vi /etc/fstab /local/path nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

No comments:

Post a Comment