ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux挂载linux共享文件夹(df查看挂载)

Linux挂载linux共享文件夹(df查看挂载)

原创 Linux操作系统 作者:小dangdang 时间:2016-08-08 09:32:33 0 删除 编辑
被挂载linux机器(root用户):

创建挂载目录并分配权限:

Mkdir /mnt/temp

Chmod 777 /mnt/temp

编辑共享目录配置文件:

Vim /etc/exports

添加如下内容:rw读写权限ro只读权限

/mnt/temp *(rw)   --*表示所有客户机都可挂载此目录rw表示读写权限

或

/mnt/temp 10.xxx.xx.xxx (rw)  --IP是挂载机器地址rw表示读写权限

检查如下:

Service nfs status     --查看nfs状态

Service nfs restart     -开启nfs服务

/etc/init.d/nfs start      -开启nfs服务

Service portmap restart     --开启端口映射服务

挂载linux机器(root用户):

mount 10.xxx.xx.xxx:/u01/mnt/sa /mnt/dang

挂载点卸载linux机器(root用户):

Umount /mnt/dang

Umnout -vl /mnt/dang/     --延迟卸载挂载点

如果出现IS BUSY提示,处理如下:

(1)先关闭当前连接挂载点的所有连接;

(2)重新打开连接登录root;

(3)继续卸载Umount /mnt/dang;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31379016/viewspace-2123118/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2016-07-28

  • 博文量
    12
  • 访问量
    18202