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

一、问题描述

关于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@

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值