Rui Qiu's Tech Blog
← Back to all posts

August 4, 2016

How to Setup NFS Server on Mac

1.Open terminal on your mac and edit exports file:

sudo nano /etc/exports

  1. 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

  1. Check if the exports file is correct:

sudo nfsd checkexports

  1. If nothing showed up with that command, it means success. then you can start enable NFS service:

sudo nfsd enable

  1. 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: