centos6.5安装NFS
首先准备两台机器:client:192.168.1.10,server:192.168.1.20
都安装:yum install -u nfs-utils rpcbind
编辑server的nfs配置文件:
vim /etc/exports
/tmp/data 192.168.1.20(rw,sync)
保存后启动rpc和nfs服务
systemctl start rpcbind
systemctl start nfs
客户端启动rpc服务:
systemctl start rpcbind
测试服务端看能不能挂载:
showmount -e 192.168.1.20
挂载:
mount -t nfs 192.168.1.20:/tmp/data /tmp/mnt