打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
解决客户端挂载mount网络文件系统nfs共享资源路径报''mount.nfs: Connection...

一、问题描述

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

服务端配置如下

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

客户端操作

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

二、解决方法

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

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

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@centos6 init.d]# vi  /etc/exports 
/home/share  *(insecure,rw,async,no_root_squash) 
~
'/etc/exports' 3L, 51C written
[root@centos6 init.d]# service  nfs  restart
关闭 NFS 守护进程:[确定]
关闭 NFS mountd:[确定]
关闭 NFS quotas:[确定]
Shutting down RPC idmapd: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额:[确定]
启动 NFS mountd:[确定]
启动 NFS 守护进程:[确定]
正在启动 RPC idmapd:[确定]
[root@centos6 init.d]# service  rpcbind  restart
停止 rpcbind:[确定]
正在启动 rpcbind:[确定]

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

1
[root@raid2t 202]# mount -t nfs   192.168.1.202:/home/share/  /home/202/
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
mount常见的错误。
centos6.2下配置nfs
nfs
CentOS 6.5下NFS安装配置
NFS网络文件系统
Linux运维入门实战题
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服