- 论坛徽章:
- 0
|
可以ping通网址,防火墙已关闭,无法挂载 nfs 服务器。请求大家帮忙分析一下。
系统是centos6.5,64位,客户端是debian7.7,32位。
配置 nfs 服务器过程
1、配置/etc/exports文件:
/home/haha/nfs *(rw,sync)
2、重启服务器结果
[haha@localhost ~]$ sudo /etc/init.d/rpcbind restart
停止 rpcbind: [确定]
正在启动 rpcbind: [确定]
[haha@localhost ~]$ sudo /etc/init.d/nfs restart
关闭 NFS 守护进程: [确定]
关闭 NFS mountd: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
Shutting down RPC idmapd: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS mountd: [确定]
启动 NFS 守护进程: [确定]
正在启动 RPC idmapd: [确定]
3、测试 exports
[haha@localhost ~]$ sudo exportfs -rv
exporting *:/home/haha/nfsroot
4、在其他机器上运行
sudo mount -t nfs 10.10.14.18:/home/haha/nfsroot /mnt/nfs
sudo mount -t nfs -o nolock 10.10.14.18:/home/haha/nfsroot /mnt/nfs
5、结果:
一段时间静默后出现:
mount.nfs: Connection timed out
|
|