搭建nfs服务器
1、nfs服务器安装软件包nfs-utils
[root@nfs ~]yum install -y nfs-utils
2、启动nfs服务
[root@nfs ~]systemctl restart nfs
3、设置nfs开机启动
[root@nfs ~]systemctl enable nfs
4、查看nfs启动情况
[root@nfs ~]# ps aux|grep nfs
root 14320 0.0 0.0 0 0 ? S< 17:24 0:00 [nfsd4_callbacks]
root 14326 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14327 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14328 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14329 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14330 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14331 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14332 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14333 0.0 0.0 0 0 ? S 17:24 0:00 [nfsd]
root 14375 0.0 0

本文详细介绍如何搭建NFS服务器,包括安装nfs-utils软件包、配置共享文件夹、设置客户端挂载及使用Docker卷共享目录的过程。
最低0.47元/天 解锁文章
348





