首页

解决客户端挂载mount网络文件系统nfs共享资源路径报"mount.nfs: Connection timed out"问题

标签:挂载nfs超时,mount网络文件系统异常,mount.nfs,Connection timed out     发布时间:2018-09-21   

一、问题描述

关于centos6.8操作系统上mount挂载nfs路径服务端资共享路径(详细的配置操作步骤参见其他文章),报mount.nfs: Connection timed out"异常,具体配置如下所示

服务端配置如下

[root@centos6 xwood-editor]# vi  /etc/exports@b@/home/share  192.168.1.0/200(r)

客户端操作

[root@raid2t xwood-editor]# mount  192.168.1.202:/home/share  /home/202/

二、解决方法

1. 设置服务端/etc/share的权限(755),并关闭服务端防火墙

[root@centos6 init.d]# chmod  -R 755 /home/share@b@@b@[root@centos6 init.d]# service  iptables  stop@b@iptables:将链设置为政策 ACCEPT:nat mangle filter [确定]@b@iptables:清除防火墙规则:[确定]@b@iptables:正在卸载模块:[确定]

2. 纠正服务端配置,并重启nfs、rpcbind服务

[root@centos6 init.d]# vi  /etc/exports @b@/home/share  *(insecure,rw,async,no_root_squash) @b@~@b@"/etc/exports" 3L, 51C written@b@[root@centos6 init.d]# service  nfs  restart@b@关闭 NFS 守护进程:[确定]@b@关闭 NFS mountd:[确定]@b@关闭 NFS quotas:[确定]@b@Shutting down RPC idmapd: [确定]@b@启动 NFS 服务: [确定]@b@关掉 NFS 配额:[确定]@b@启动 NFS mountd:[确定]@b@启动 NFS 守护进程:[确定]@b@正在启动 RPC idmapd:[确定]@b@[root@centos6 init.d]# service  rpcbind  restart@b@停止 rpcbind:[确定]@b@正在启动 rpcbind:[确定]

3. 客户端重新挂载mount操作

[root@raid2t 202]# mount -t nfs   192.168.1.202:/home/share/  /home/202/
@b@