这是NFS基础,大神飘过~~~
具体介绍和解释请参考《鸟哥的Linux私房菜_服务器架设篇 第三版》的NFS相关介绍
实现步骤:
1.服务器端:
sudo apt-get install portmap2.服务器端:
sudo apt-get install nfs-kernel-server3.客户端:
sudo apt-get install nfs-common4.服务器端配置:
sudo gedit /etc/exports添加:
/home/share 192.168.1.*(rw,sync,no_root_squash)(共享目录) (允许IP)
sudo /etc/init.d/portmap restart6.服务器端启动:
sudo /etc/init.d/nfs-kernel-server restart7.arm板连接时:主机:
sudo ifconfig eth0 192.168.1.101 netmask 255.255.255.0
arm板:
ifconfig eth0 192.168.1.102 netmask 255.255.255.08.arm板上
mount:mount -t nfs 192.168.1.101:/home/share /mnt/hosts(主机IP和共享目录) (arm板目录)
mount -t nfs -o nolock 192.168.1.101:/home/share /mnt/hosts3.出现问题: