目 录CONTENT

文章目录

Linux下快速安装NFS

码农街
2021-05-23 / 0 评论 / 0 点赞 / 22 阅读 / 1247 字 / 正在检测是否收录...

安装

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

0

评论区