1.在源服务器端启动nfs和portmap服务
    service nfs start
    service portmap start
    通过ntsysv,把nfs和portmap服务加到自启动服务中

 

2. 在源服务器编辑配置文件/etc/exports

    /mnt *(rw,sync)

    含义:共享/mnt目录给任意的ip地址的机器

 

3.  配置好后重启源服务器端的nfs服务

service nfs restart

 

4. 在客户端启动portmap服务
    service portmap start

 

5. 在客户端mount远程文件夹

mount -t nfs  192.168.0.5:/mnt /mnt

 

那么就把本地服务器的/mnt文件远程mount到192.168.0.5的mnt下。 

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-12-05
  • 2021-06-18
  • 2021-06-03
猜你喜欢
  • 2022-01-15
  • 2021-12-03
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-12-05
  • 2021-10-26
相关资源
相似解决方案