Chinaunix首页 | 论坛 | 博客
  • 博客访问: 471525
  • 博文数量: 38
  • 博客积分: 764
  • 博客等级: 军士长
  • 技术积分: 485
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-09 23:22
文章分类

全部博文(38)

文章存档

2019年(1)

2018年(1)

2014年(2)

2013年(3)

2012年(23)

2011年(8)

分类: LINUX

2012-09-27 14:36:40


  1. 1. 安装NFS必须要开启的服务有:nfs、portmap
  2. service portmap start
  3. service nfs start
  4. chkconfig --level 35 portmap on
  5. chkconfig --level 35 nfs on
  6. 2.编辑 /etc/exports
  7. /data 192.168.2.1(rw,sync,no_root_squash)
  8. /logs *(ro)
  9. 3.显示本机提供的nfs
  10. exportfs
  11. 在客户机上查看nfs主机提供的nfs目录
  12. showmount --export 192.168.2.1
  13. 4.在另一台主机挂载nfs主机
  14. 先开启portmap服务
  15. service portmap start
  16. chkconfig --level 35 portmap on
  17. 挂载nfs主机目录
  18. mount 192.168.2.1:/data /data2





 


 

阅读(1383) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~