1.查看系统是否安装了nfs服务
#rpm -qa|grep nfs-utils
2.安装nfs软件包
#yum -y install nfs-utils
3.编辑nfs服务的配置文件
#vi /etc/exports
添加共享目录/data
保存,退出
#:wq
4.更新配置文件
#exportfs -r
5.启动NFS服务,并查看服务状态。
#systemctl start nfs-server
#systemctl status nfs-server
6.配置NFS服务开机自启动
#systemctl enable nfs-server
7.查看NFS服务共享盘挂载情况
#showmount -e localhost
end