查询是否已安装:
systemctl status rpcbind
systemctl status nfs-server
查询共享目录
vi /etc/exports
安装:
yum install rpcbind -y
yum install -y nfs-utils
配置共享文件夹:
mkdir /nfs
chmod 666 /nfs
vi /etc/exports
添加
/nfs *(rw,sync,insecure,no_subtree_check,no_root_squash)
关闭防火墙:
systemctl stop firewalld
启动:
service rpcbind start
service nfs-server start