How to Setup NFS Server on Mac
1.Open terminal on your mac and edit exports file:
sudo nano /etc/exports
- Edit the file to add the share folder:
/LocalSharedFolderPath -mapall=ID -alldirs ID is your account ID, you can just type”id” in terminal to find out
- Check if the exports file is correct:
sudo nfsd checkexports
- If nothing showed up with that command, it means success. then you can start enable NFS service:
sudo nfsd enable
- Check if NFS has been setup correctly:
showmount -e
If you see the following word and with the shared path, then it is good. If you only see the following word, then it means failed :(
Exports list on localhost: