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 188.8.131.52 sudo nicl . -append /exports/\\/Users\\/jerome\\/projects\\/www clients "184.108.40.206" # 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