文件存储服务器配置:

安装NFS
yum install -y rpcbind nfs-utils
创建共享目录
mkdir /root/sharefile
修改目录权限
chmod 0755 -R sharefile
修改NFS配置文件
vi /etc/exports
----------------------------
/root/sharefile/ 192.168.2.121(rw,no_root_squash,no_all_squash,sync) 192.168.2.122(rw,no_root_squash,no_all_squash,sync)
----------------------------
启动NFS服务
systemctl start nfs
查看共享目录状态
showmount -e 192.168.2.120

文件存储客户机配置:
安装NFS
yum install nfs-utils
查看共享目录
showmount -e 192.168.2.120
创建共享目录
mkdir /root/sharefile
挂载共享目录
mount -t nfs 192.168.2.120:/root/sharefile /root/sharefile

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-09-20
  • 2021-12-20
  • 2021-11-05
  • 2021-11-27
猜你喜欢
  • 2021-04-13
  • 2021-09-06
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案