什么是NFS共享
• Network File System,网络文件系统
– 由NFS服务器将指定的文件夹共享给客户机
– 客户机将此共享目录 mount 到本地目录,访问此共享
资源就像访问本地目录一样方便
– 类似于 EXT4、XFS等类型,只不过资源在网上
  NFS服务器:虚拟机classroom
   客户端:虚拟机server
1.查看classroom共享
]# showmount -e classroom.example.com
Export list for classroom.example.com:
/home/guests  172.25.0.0/255.255.0.0
  共享路径              谁可以访问共享
]# ifconfig | head -2 #客户端查看自己ip是否复合要求
2.挂载classroom的共享
]# mkdir /test
]# mount classroom.example.com:/home/guests /test
]# ls /test
]# su - ldapuser0
]$ whoami

相关文章:

  • 2021-07-27
  • 2022-01-09
  • 2021-12-24
  • 2021-07-20
  • 2022-12-23
  • 2022-02-17
  • 2021-09-01
  • 2021-10-18
猜你喜欢
  • 2021-04-30
  • 2021-11-08
  • 2021-09-11
  • 2021-06-26
  • 2021-10-16
  • 2021-12-22
  • 2021-05-04
相关资源
相似解决方案