NFS配置linux

yum clean all
yum repolist
第一步:下载
yum install nfs-utils rpcbind -y
第二步:配置
mkdir /test
vim /etc/exports
/test 192.168.126.0(rw)
第三步:重启
systemctl restart nfs rpcbind
关防火墙
setenforce 0
systemctl stop firewalld
添加权限
chmod 777 /test
客户端连接
第一步:下载
yum install nfs-utils -y
第二步:查看
showmount -e 192.126.126.6
第三步:挂载
mkdir /zxw
mount -t nfs 192.168.126.6:/test /zxw

查看磁盘

df -h

原文地址:https://www.cnblogs.com/itzhao/p/11246421.html