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

使用tmpfs实现NFS共享

时间:2015-04-02 06:48:48      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:nfs   tmpfs   

假设NFS服务端IP:1.1.1.1,NFS客户端IP:1.1.1.2


  1. NFS服务端执行:mount -t tmpfs -o size=1g tmpfs /opt/nfs

  2. NFS服务端编辑/etc/exports,添加 /opt/nfs *(rw,fsid=0)

  3. 启动NFS服务端:/etc/init.d/nfsserver start

  4. NFS服务端为/opt/nfs添加超级权限,chmod -R 777 /opt/nfs

  5. NFS客户端执行:showmount -e 1.1.1.1,会显示出可以mount的NFS分区

  6. NFS客户端执行:mount -t nfs 1.1.1.1:/opt/nfs /opt/nfs

使用tmpfs实现NFS共享

标签:nfs   tmpfs   

原文地址:http://artinfo.blog.51cto.com/10067034/1627472

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