现在的位置: 首页 > 综合 > 正文

Linux平台下远程磁盘mount到本地

2018年04月15日 ⁄ 综合 ⁄ 共 394字 ⁄ 字号 评论关闭

from: http://nc.mofcom.gov.cn/articlepx/px/dnkt/201103/17643781_1.html

     1.在源服务器端启动nfs和portmap服务

  service nfs start

  service portmap start

  通过ntsysv,把nfs和portmap服务加到自启动服务中

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

  /data 1.1.1.1(rw,no_root_squash)

  含义:共享/data目录给IP地址为1.1.1.1

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

  service nfs restart

  4.在客户端启动portmap服务

  service portmap start

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

  mkdir /data

  mount -t nfs 1.1.1.1:/data /data

抱歉!评论已关闭.