NFS共享服务搭建

server端20.42.5.14
yum install rpcbind nfs-utils -y
vim /etc/exports
  /data 20.42.5.11(rw,sync,no_root_squash)
  /data 20.42.5.12(rw,sync,no_root_squash)
  /data 20.42.5.13(rw,sync,no_root_squash)
systemctl start rpcbind nfs
systemctl enable rpcbind nfs

查看挂载情况

showmount -e 20.42.5.14
exportfs

client端20.42.5.11/12/13
yum install nfs-utils rpcbind
mkdir /data
mount -t nfs 20.42.5.14:/data /data
vim /etc/fstab
  20.42.5.14:/data /data nfs defaults 0 0

posted @ 2020-06-30 14:30  duanpeng123  阅读(66)  评论(0)    收藏  举报