showmount -e <nfs_server>
sudo mount_nfs -P maestric.getmyip.com:/Users/jerome/projects/www home_apache sudo umount home_apache
Slashes in the shared path must be protected by two anti-slashes.
# share /Users/jerome/projects/www/test sudo nicl . -create /exports/\\/Users\\/jerome\\/projects\\/www # restrict to computer 220.127.116.11 sudo nicl . -append /exports/\\/Users\\/jerome\\/projects\\/www clients "18.104.22.168" # changes will be done as jerome sudo nicl . -append /exports/\\/Users\\/jerome\\/projects\\/www opts "mapall=jerome" # kill mountd sudo kill -1 `cat /var/run/mountd.pid` # launch daemons sudo /usr/sbin/mountd sudo /sbin/nfsd -t -u -n 6 # check it worked showmount -e
Source: Setup an NFS server on Mac OS X