Skip to content

How to set up the NFS server on macOS?

sudo chmod 640 /etc/exports
sudo nfsd checkexports
sudo nfsd enable
sudo nfsd start
nfsd status

showmount -e 192.168.1.100

sudo nfsd stop
sudo nfsd disable

cat /etc/exports 
#/tmp/sarayut -mapall=sarayut -network 192.168.1.0 -mask 255.255.255.0
#/tmp/sarayut 192.168.1.100 (rw,alldirs,insecure,sync,no_subtree_check,no_root_squash,no_all_squash,crossmnt)

sudo cat /etc/exports 
#/Users/sarayut -mapall=sarayut -network 192.168.1.0 -mask 255.255.255.0
#/Volumes/ST8TB -mapall=sarayut -network 192.168.1.0 -mask 255.255.255.0
#/Volumes/New8TB -mapall=sarayut -network 192.168.1.0 -mask 255.255.255.0

sudo nfsd restart

#On Linux
#sudo apt install nfs-kernel-server
sudo apt install nfs-common
Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *