给网友分享一下linux服务器若何怎样搭建、安排NFS服务经验。

1、使用xshell工具登录linux 系统

2、使用敕令,查看能否安装了nfs软件包

#rpm -qa|grep nfs-utils

3、安装nfs软件包

#yum -y install nfs-utils

4、编纂nfs服务的配置文件

#vi /etc/exports

添加同享目次/data

保留,退出

#:wq

5、更新配置文件

#exportfs -r

6、开动NFS服务,并查看服务状况。

#systemctl start nfs-server

#systemctl status nfs-server

7、配置NFS服务开机自开动

#systemctl enable nfs-server

8、查看NFS服务同享盘挂载景况

#showmount -e localhost

相关文章