服务端
[root@localhost ~]# rpm –qa nfs-utils
[root@localhost ~]# rpm –qa rpcbind
[root@localhost ~]# yum –y install nfs-utils rpcbind
[root@localhost ~]# mkdir /data
[root@localhost ~]# vim /etc/exports/data
192.168.1.0/24(rw,sync,no_root_squash)
[root@localhost ~]# /etc/init.d/rpcbind restart
[root@localhost ~]# /etc/init.d/nfs restart
[root@localhost ~]# showmount –e localhost
客服端
[root@localhost ~]# rpm –qa nfs-utils
[root@localhost ~]# rpm –qa rpcbind
[root@localhost ~]# yum –y install nfs-utils rpcbind
[root@localhost ~]# showmount –e 192.168.1.x
[root@localhost ~]# vim /etc/fstab
192.168.1.x:/data /data nfs _netdev 0 0
[root@localhost ~]# mount –a