nfs服务器配置

1、建立共享文件夹
   mkdir /home/share
2、设置共享目录
vim /etc/exports
加入
/home/share *(sync,rw,no_root_squash)
3、使设置生效
exportfs -ra
4、检查共享目录设置是否生效
exportfs -v 或 showmonut -e

 

1、挂载
 monut -t nfs 192.168.0.19:/work/nfs_root /mnt/share  /*192.168.0.19 是挂载系统的ip*/
2、开机永久挂载
 vim /etc/fstab
加上
  192.168.0.19:/work/nfs_root /mnt/share nfs defaults 0 0
3、卸载
  unmonut /mnt/share
4、查看指定IP共享文件夹
  showmonut -e 192.168.0.19


在ubuntu中
  nfs在/etc/init.d/nfs-kernel-server

posted on 2015-07-28 15:50  come_on_hands  阅读(189)  评论(0编辑  收藏  举报

导航