NFS 实验 FC6

NFS 实验 FC6

By - Spirit

实验环境两个VM虚拟机
FC6=NFSserver
CentOS4=NFSclient
---
配置FC6上的NFSclient
rpm -ivh nfs-utils-1*.rpm //Install
rpm -qa nfs*
/etc/rc.d/init.d/nfs start //Start NFS
----
/etc/exports //Profiles!
---grammer
/share *(sync)//Allow all rw,'rw'=read write
/share *(ro,sync)//Allow all r,'ro'=read only
----
#Access //如果遇到问题可以用iptables -F来清理下防火墙规则还有关闭Selinux
vi /etc/selinux/config //Close selinux
更改为这样SELINUX=disabled
showmount -e nfs.x.com //view share list
mount nfs Server:ShareFloder LocalDirectory //Mount
mount nfs:/share /nfs1 //nfs=ipaddress or domain 'share'=remote directory '/nfs1'=lcoal directory
umount /nfs1 //umount /nfs1