赞
踩
$ yum install -y nfs-utils $ yum install -y rpcbind $ sudo systemctl start rpcbind $ sudo systemctl enable rpcbind $ sudo systemctl start nfs-server $ sudo systemctl enable nfs-server $ sudo firewall-cmd --permanent --add-service=nfs $ firewall-cmd --permanent --add-service=rpc-bind # 允许rpc nfs mountd服务通过防火墙 $ firewall-cmd --permanent --add-service=nfs $ firewall-cmd --permanent --add-service=mountd $ firewall-cmd --reload # 刷新防火墙配置 $ vi /etc/exports /home/public 219.223.176.224(rw) $ source /etc/exports $ exportfs -av $ showmount -e #查看挂载了哪些文件夹到哪些客户端
Failed to reload nfs.service: Unit nfs.service not found.
解决方案:直接写全
$ systemctl reload nfs-server
服务器防火墙问题,要求防火墙允许nfs服务
Failed to start nfs-secure-server.service: Unit not found.
不用管,不执行这句就好了
客户端挂载:
# 查看
showmount -e 219.223.179.38
mount \\219.223.178.38\home\output Y:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。