首页 > 编程知识 正文

Linux 磁盘挂载 NFS,linux永久挂载磁盘

时间:2023-05-03 09:52:30 阅读:189424 作者:4610

一.安装组件yum install -y nfs-utils rpcbind,创建共享目录mkdir-p/NFS/Gerrit _ git CD/NFS/Gerrit _ git/3 Gerrit_git/*(rw, sync ) #保存结束#启用配置exportfs -r#检查okexportfsrpcinfo -p是否挂载了NFS服务器要共享的目录/nfs/gerrit_git/可以配置引导(主)的systemctlstartnfssystemctlenablenfssystemctlstartrpcbind.servicesystemctlenablerpcbind.servicesystesysted e nfs-server.service文件,从配置#从配置不需要启动nfssystemctlstartrpcbind.servicesystemctlenablerpcbind.service。 注意:客户机不需要启动NFS服务。6、6验证NFS服务器端是否进行了目录共享。 从showmount -e nfs服务器的IP showmount-e 192.168.248.208 exportlistfor 192.168.248.2083360/NFS/Gerrit _ gor计算机上使用mount进行服务器从到客户端目录: mount-tnfs 192.168.248.2083360/NFS/Gerrit _ git//NFS/Gerrit df-h

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。