Centos 搭建 NFS
阿新 • • 發佈:2017-10-10
exp centos www har showmount sdn ports blog tails
- 服務端
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
Centos 搭建 NFS