Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1892604
  • 博文数量: 389
  • 博客积分: 7877
  • 博客等级: 少将
  • 技术积分: 4521
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-10 14:02
文章分类

全部博文(389)

文章存档

2024年(1)

2022年(1)

2021年(1)

2020年(1)

2019年(1)

2018年(3)

2017年(6)

2016年(4)

2015年(8)

2014年(15)

2013年(31)

2012年(19)

2011年(47)

2010年(33)

2009年(105)

2008年(109)

2007年(4)

分类: LINUX

2009-03-30 18:10:35

环境是:
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)

Server端:
这里Server端的IP地址为192.168.1.1
编辑/etc/exports内容如下:
/tmp    192.168.1.2(rw,sync,no_root_squash)  //注意这里的/tmp必须要是文件系统,IP地址为需要mount该文件系统的客户端

添加/etc/rc.local如下内容,以便开机自启动nfs服务
/sbin/portmap start
/etc/rc.d/init.d/nfs start

查看是否正常export出去,
showmount -e

Client端:
这里Client端的IP地址为192.168.1.2
把下面的命令加到/etc/rc.local里面以便开机时自动mount起Server端文件系统
mount 192.168.1.1:/tmp /mylinux_tmp


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