#server服务端 192.168.9.9
yum -y install nfs-utils ,rpcbind
systemctl start rpcbind.service
systemctl start nfs.service
systemctl enable rpcbind.service
systemctl enable nfs.service
#设置共享目录
vim /etc/exports
/data *(rw,no_root_squash,fsid=0)
#挂载端
yum install -y showmount,rpcbind
systemctl start rpcbind.service
systemctl enable rpcbind.service
showmount -e 192.168.9.9
#将当前data目录 挂载服务端data目录
mount 192.168.9.9:/data /data
#开机自动挂载
vim /etc/fstab
192.168.9.9:/data/ /data/ nfs rw
本文详细介绍了如何在服务器端安装并启动NFS服务,包括必要的软件包安装、服务启动与设置共享目录。同时,指导客户端进行NFS服务的挂载,确保数据目录的远程访问与自动挂载。
542

被折叠的 条评论
为什么被折叠?



