vbox centos 與開發板nfs配置

主機(192.168.1.103)配置:

1)安裝nfs文件

yum -y install nfs-utils rpcbind

2)配置服務:

# cat /etc/exports 
/home/happyone/work/sharenfs  *(rw,sync,no_root_squash)

3)啓動服務:

#service rpcbind start
#service nfs start

4)關閉iptables

#service iptables stop

--------------------------------

1) 臨時生效,重啓後復原
開啓: service iptables start
關閉: service iptables stop

2) 永久性生效,重啓後不會復原
開啓: chkconfig iptables on
關閉: chkconfig iptables off

--------------------------------

5)設置連接方式爲橋接對於連接開發的網卡


開發板(192.168.1.124)配置:

1)編輯腳本nfs.sh

t# cat nfs.sh 
#!/bin/sh
mount -t nfs -o nolock 192.168.15.103:/home/happyone/sharenfs  /mnt/nfs


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章