现有两台centos7.9服务器,服务器A上有个分区/data1/sky需要通过NFS挂载到服务器B上的/dataw/gggg分区。
在服务器A上安装NFS服务器端,在服务器B上安装NFS客户端,在服务器A上vi /etc/exports,加入内容/data1/sky/ *(rw,sync,no_root_squash,insecure),使用exportfs -ra生效。启动nfs服务,并让nfs服务开机自启,systemctl start nfs,systemctl enable nfs,并关闭防火墙systemctl stop firewalld.service,或者在防火墙放通相[……]