码迷,mamicode.com
首页 > 其他好文 > 详细

NFS配置文件

时间:2015-12-29 19:42:49      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:nfs

vim /etc/exports 


/mnt/directory01/ 10.0.0.1(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory02/ 10.0.0.2(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory03/ 10.0.0.3(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory04/ 10.0.0.4(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory05/ 10.0.0.5(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory06/ 10.0.0.6(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory07/ 10.0.0.7(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory08/ 10.0.0.8(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory09/ 10.0.0.9(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory10/ 10.0.0.10(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory11/ 10.0.0.11(rw,fsid=1,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory12/ 10.0.0.12(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory13/ 10.0.0.13(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory14/ 10.0.0.14(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)

/mnt/directory15/ 10.0.0.15(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)



编辑完该文件后,使用该命令使之生效

# exportfs -rv


然后客户端直接使用mount命令挂载该NFS,或编辑/etc/fstab文件来挂载。

#NFS Mount

10.0.0.250:/mnt/directory1  /mnt/nfs   nfs      rw,sync,hard,intr  0     0


NFS配置文件

标签:nfs

原文地址:http://ting2junshui.blog.51cto.com/975290/1729649

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!