1、将NFS Server 的/home/david/ 共享给192.168.1.0/24网段,权限读写。
vi /etc/exports
service portmap restart
service nfs restart
showmount -a //显示已经与客户端连接上的目录信息
4、客户端使用showmount命令查询NFS的共享状态
showmount -e NFS服务器IP
5、客户端挂载NFS服务器中的共享目录
mount 10.220.6.202:/o2o-app/fs /o2o-app/fs
mount |grep nfs
vi /etc/exports
/o2o-app/fs 10.220.6.203(rw)
service portmap restart
service nfs restart
exportfs
3、服务器端使用showmount命令查询NFS的共享状态
showmount -e //默认查看自己共享的服务,前提是要DNS能解析自己,不然容易报错showmount -a //显示已经与客户端连接上的目录信息
4、客户端使用showmount命令查询NFS的共享状态
showmount -e NFS服务器IP
5、客户端挂载NFS服务器中的共享目录
mount 10.220.6.202:/o2o-app/fs /o2o-app/fs
mount |grep nfs