Centos 搭建 NFS

  • 服务端

yum -y install nfs-utils rpcbind

chkconfig nfs on

chkconfig rpcbind on

mkdir -p /tmp/share

chmod 600 /tmp/share

vim /etc/exports

/tmp/share 192.168.2.0/24(rw,no_root_squash,no_all_squash,sync)

/tmp/share *(rw,no_root_squash,no_all_squash,sync)

service rpcbind start

service nfs start

showmount -e localhost

  • 客户端

yum -y install nfs-utils

mkdir -p /tmp/nfs

showmount -e 192.168.2.203

mount -t nfs 192.168.2.203:/data/share /tmp/nfs

df -h

 

参考文献:http://www.cnblogs.com/liuyisai/p/5992511.html

参考文献:http://blog.csdn.net/loyachen/article/details/51010688

posted @ 2017-10-10 20:48  jhc888007  阅读(124)  评论(0编辑  收藏  举报