CENTOS8 DEBIAN10 NFS安装

centos

 yum install -y  nfs-utils   
 yum install -y rpcbind

客户端

  yum install -y nfs-utils

先为rpcbind和nfs做开机启动:(必须先启动rpcbind服务)

systemctl enable rpcbind.service
systemctl enable nfs-server.service
systemctl start rpcbind.service
systemctl start nfs-server.service

确认NFS服务器启动成功:rpcinfo -p

debian

NFS 服务器

sudo apt-get install nfs-kernel-server
sudo apt-get install -y rpcbind

启动服务

systemctl enable rpcbind.service
systemctl enable nfs-kernel-server.service
systemctl start rpcbind.service
systemctl start nfs-kernel-server.service

配置vim /etc/exports

/me4084/1099-1/ 172.20.0.0/24(rw,fsid=0,async,wdelay)

NFS客户端

sudo apt-get install nfs-commmon

手动挂载

 mount -t nfs4 172.20.0.99:/me4084/1099-1   /1099-1

编辑/etc/fstab开机自动挂载

172.20.0.99:/me4084/1099-1                /1099-1         nfs4  defaults,_netdev  0       0

你可能感兴趣的:(CENTOS8 DEBIAN10 NFS安装)