安装
yum install -y nfs-common nfs-utils rpcbind 分配权限
mkdir /nfsdata && chmod 666 /nfsdata && chown nfsnobody /nfsdata 配置挂载
vi /etc/exports 填写如下内容然后保存
/nfsdata *(rw,no_root_squash,no_all_squash,sync) 启动
systemctl start rpcbind && systemctl start nfs 最后附上一键安装脚本:nfsInstall.sh
评论区