NFS服务端
1.打印系统版本
[[email protected] ~]# cat /etc/redhat-release
[[email protected] ~]# uname -r
2.检查并安装NFS服务
[[email protected] ~]# rpm -qa rpcbind portmap nfs
[[email protected] ~]#yum groupinstall "NFS file server"或者yum install -y nfs-utils rpcbind
3.启动RPC及NFS服务并检查
[[email protected] ~]#/etc/init.d/rpcbind start
[[email protected] ~]# ps -ef |grep rpc
[[email protected] ~]#/etc/init.d/rpcbind status
[[email protected] ~]#rpcinfo -p localhost
4.设置开机自动启动并检查
[[email protected] ~]# chkconfig nfs on
[[email protected] ~]# chkconfig rpcbind on
5.配置共享data目录
[[email protected] ~]# vim /etc/exports
##########shared data for bbs by andy at 20160825
/data 192.168.100.0/24(rw,sync)
6.创建共享目录
[[email protected] ~]# mkdir /data
7.平滑加载NFS服务并检查服务
[[email protected] ~]#/etc/init.d/nfs reload
[[email protected] ~]#showmount -e localhost
NFS客户端
1.检查系统版本
2.安装rpc服务并检查
3.启动rpc服务并检查
4.设置开机自动启动并检查
5.检查服务端NFS是否OK
6.挂载并测试