Redhat Linux NFS 配置

1.检查软件是否已安装

[root@localhost logs]# rpm -qa|grep nfs
nfs-utils-1.0.6-93.EL4
system-config-nfs-1.2.8-1
nfs-utils-lib-1.0.6-10.el4

2.编辑exprts文件

[root@localhost logs]# vi /etc/exports

/opt/httpd-2.2.3/logs 192.100.1.123(ro)

标示本机的logs文件夹只能被192.100.1.123机子访问,(ro)为只读权限

3.启动服务

[root@localhost ~]# service portmap start
启动 portmap:[  确定  ]

[root@localhost ~]# service nfs start
启动 NFS 服务: [  确定  ]
关掉 NFS 配额:[  确定  ]
启动 NFS 守护进程:[  确定  ]
启动 NFS mountd:[  确定  ]

4.测试服务

[root@localhost ~]# exportfs
/opt/httpd-2.2.3/logs   192.100.1.61

5.客户端挂载

登陆到192.100.1.123服务器

mount 192.100.1.55:/opt/httpd-2.2.3/logs /usr/local/nfs

猜你喜欢

转载自labuladuo.iteye.com/blog/1151281