Lab Environment:
NFS (server): Mac OS X 192.168.13.5
NFS (client): Mac OS X 192.168.13.6
Steps:
Nfs-server:
The Apple System (MAC) comes with the NFSD feature by default and starts with the system. All we have to do is configure:
Command-line mode:
sudo vi/etc/exports # #编辑/etc/exports/test-alldirs-rw-network 192.168.13.0-mask 255.255.255.0 #说明: Share the Users directory and all subfolders to 1 92.168.13.0 the entire network segment and is set to read and write.
Create a file directory to share: sudo mkdir/test
Set permissions: sudo chmod 777-r/test
sudo nfsd enable #确认NFSD服务开启
sudo nfsd restart #如果nfsd已经启动, requires a reboot to take effect, or error: (Mount_nfs:can ' t mount/test from 192.168.13.5 Onto/test2:permis Sion denied)
sudo nfsd update #刷新NFSD共享资源
SHOWMOUNT-E #显示当前共享的资源
Nfs-client:
Client system run:
Create mount point: sudo mkdir/test2
Mount: sudo mount-t NFS 192.168.13.31:/test/test2/
Automatic mount on Boot:
sudo vim/etc/fstab
192.168.13.5/test/test NFS Defaults 0 0
This completes the deployment.
Reference: http://www.cyberciti.biz/faq/apple-mac-osx-nfs-mount-command-tutorial/
Troubleshooting MacOS Cannot mount Nfs,operation not permitted error
Create a new NFS share in Mac OS X
NFS Mount failed server Permission denied workaround
Graphics Tutorial----Mac OS settings how to boot without mounting hard disk partitions
This article is from "Dolphin Watching" blog, please be sure to keep this source http://swht1278.blog.51cto.com/7138082/1743068
Nfs:mac OS x (server) and Mac OS X (clients) Implementation ideas