linux绑定远程目录

服务器
1、yum -y install nfs-utils rpcbind
2、mkdir /sharestore(需要共享的目录)
3、vi /etc/exports
/sharestore     *(rw,sync,no_root_squash)

4、service rpcbind start
5、service nfs start
6、chkconfig rpcbind on
7、chkconfig nfs on

客户端
1、yum -y install nfs-utils rpcbind
2、service portman start
3、mkdir /mnt/store(需要映射的目录)
4、showmount -e 192.168.0.10(服务器ip)
5、mount -t nfs 192.168.0.10:/sharestore /mnt/store

完成

猜你喜欢

转载自sensejw.iteye.com/blog/2312729