--指定輸出目錄
#vi /etc/exports
寫入:/opt/code 192.168.1.*(rw,sync,no_root_squash)
--關閉防火牆並查看狀態:
#service iptables stop
#service iptables status
或者
/etc/init.d/iptables stop
/etc/init.d/iptables status
--首先要查看portmap服務是否運行
FEDORA是:
# service rpcbind start
# service rpcbind restart
[root@51arm ~]# service rpcbind start
[root@51arm ~]# service rpcbind status
rpcbind (pid 1111) is running...
--啓動NFS
/etc/rc.d/init.d/nfs start
或者
# service nfs start
--查看NFS狀態
客戶段的操作:
1、showmout命令對於NFS的操作和查錯有很大的幫助,所以我們先來看一下showmount的用法
showmout
-a :這個參數是一般在NFS SERVER上使用,是用來顯示已經mount上本機nfs目錄的cline機器。
-e :顯示指定的NFS SERVER上export出來的目錄。
例如:
showmount -e 192.168.0.30
--開發板上操作:
#ping 192.168.1.101 -c3
# mount -t nfs -o nolock 192.168.1.101:/opt/code /mnt
#
一切順利。
利爾達物聯網研發中心
zxyu
2011-5-14