树莓派集群实践——nfs
1.安装
apt-get install nfs-common nfs-kernel-server
省略(sudo apt-get install portmap --->install rpcbind )
2.mkdir /mnt/sda1/
3.vim /etc/exports
/mnt/sda1 *(rw,sync,no_subtree_check)
/mnt/sda1 192.168.1.*(rw,sync,no_subtree_check)
4.启动sudo service rpcbind start
5./etc/init.d/nfs-kernel-server start
6.showmount -e
7.客户端配置
vim /etc/exports
/mnt/sda1 192.168.1.*(rw,sync,no_subtree_check)
挂载 mount -t nfs 192.168.1.180:/mnt/sda1 /data/sda1_data -o nolock