Linux NFS mount挂载
来源:互联网 发布:node.js 个人博客 编辑:程序博客网 时间:2024/05/18 01:24
被mount的机器(服务机)10.10.10.209
1 创建共享文件夹/data/attachment
2 修改/etc/exports,加入
3 重启相关服务(顺序按下面的进行)
service rpcbind stop
service nfsserver stop
service rpcbind start
service nfsserver start
mount的机器(客户机)10.10.10.207
1 创建文件夹/data/attachment
2 修改/etc/fstab,加入
10.10.103.209:/data/attachments /data/attachments nfs defaults 0 0
3 输入mount -a 使其生效
4 测试,输入:showmount -e 10.10.103.209,查看本机的共享目录
如果输出:
Export list for 10.10.103.209:
/data/attachments *
则测试成功
整体测试
1 在服务机/data/attachment下创建文件,如果在客户机下同样目录下出现次文件,说明成功
参考资料
(1)http://www.linuxidc.com/Linux/2014-01/95507.htm
(2)http://blog.csdn.net/liangziyisheng/article/details/10705449
(3)http://blog.csdn.net/demo_deng/article/details/9568927
1 创建共享文件夹/data/attachment
2 修改/etc/exports,加入
/data/attachments 10.10.10.207(rw,no_root_squash,sync,insecure)
多个服务器如下:
/data/attachments 10.10.10.207(rw,no_root_squash,sync,insecure) 10.10.10.208(rw,no_root_squash,sync,insecure)
3 重启相关服务(顺序按下面的进行)
service rpcbind stop
service nfsserver stop
service rpcbind start
service nfsserver start
mount的机器(客户机)10.10.10.207
1 创建文件夹/data/attachment
2 修改/etc/fstab,加入
10.10.103.209:/data/attachments /data/attachments nfs defaults 0 0
3 输入mount -a 使其生效
4 测试,输入:showmount -e 10.10.103.209,查看本机的共享目录
如果输出:
Export list for 10.10.103.209:
/data/attachments *
则测试成功
整体测试
1 在服务机/data/attachment下创建文件,如果在客户机下同样目录下出现次文件,说明成功
参考资料
(1)http://www.linuxidc.com/Linux/2014-01/95507.htm
(2)http://blog.csdn.net/liangziyisheng/article/details/10705449
(3)http://blog.csdn.net/demo_deng/article/details/9568927
(4)http://www.2cto.com/os/201201/116103.html
0 0
- Linux NFS mount挂载
- 使用mount挂载NFS
- linux mount nfs and cifs
- Linux系统 nfs 共享及 挂载mount 配置
- linux的mount(挂载)NFS 共享,命令详解
- linux下通过mount挂载iscsi、ntfs、nfs详解
- Linux下通过mount挂载iscsi、ntfs、nfs详解
- linux的mount(挂载)NFS 共享,命令详解
- Linux访问远程服务器文件——NFS+mount挂载
- Linux访问远程服务器文件——NFS+mount挂载
- Linux AIX间的NFS mount
- linux的NFS及mount使用方法
- Linux的nfs及mount使用方法
- linux的NFS及mount使用方法 |
- linux的NFS及mount使用方法
- Linux 下 nfs mount渗透技巧
- LINUX mount.nfs: Input/output error
- solaris 10 mount Linux NFS的问题
- java学习day01
- C++/CLI 托管C++的数据类型介绍【2】
- 新年快乐
- C C++相互调用
- 蛇形矩阵
- Linux NFS mount挂载
- iOS正则表达式
- C++和C语言函数相互调用之二
- 约瑟夫问题——历史的真相
- 在看到厄尔巴岛之前,我曾经不可一世
- C++/CLI 托管C++的基本数据类型及函数【3】
- 勤奋的计算机系学生
- [编程语言][C语言]C语言的顺序结构
- 在CentOS 6.5上安装软件