1. 程式人生 > >嵌入式裝置從linux機上拷檔案配nfs

嵌入式裝置從linux機上拷檔案配nfs

ubunte配nfs伺服器

1. sudo service nfs-kernel-server restart安裝

2.sudo vi /etc/exports 

/home/tanyb/share/work/his/dirmount 192.168.30.0/255.255.255.0(rw,no_root_squash)

3.sudo vi /etc/hosts.allow

portmap:192.168.30.0/255.255.255.0

4.sudo vi /etc/hosts.deny 

portmap:ALL

5.service portmap restart

6.service nfs-kernel-server restart

嵌入式機:

1.mkdir /nfsroot

2.mount -o tcp,nolock 192.168.30.230:/home/tanyb/share/work/his/dirmount /nfsroot