|
操作系统:Redhat5.8
nfs:用于linux和linux系统之间的共享
软件安装:
#yum install nfs-utils
#yum install portmap -->提供rpc协议
服务启动:
#/etc/init.d/portmap start
#/etc/init.d/nfs start
配置文件:/etc/exports
ex:
#vim /etc/exports
-->共享目录的绝对路径共享给谁(权限)
/home`192.168.1.0/24(rw,sync,no_root_squash)
/home`192.168.1.2(rw,sync,no_root_squash)
-->no_root_squash取消root账户的权限压制
配置完成后,重启服务
#/etc/init.d/nfs restart
客户端:
ex:
#showmount -e 192.168.1.250 -->查看192.168.1.250主机开启的nfs共享
挂载:
#mount -t nfs 192.168.1.250:/home /nfs
注意事项:
rhel5之间,rhel6之间,rhel6挂载rhel5的nfs可以挂载上;
rhel5无法挂载上rhel6共享的nfs空间:
->mount clntudp_create: RPC: Port mapper failure -RPC: Unable to receive
|
|
|