nfs的问题

mark620 2011-05-12 08:36:10
为了共享文件,查阅了资料发现nfs是个不错的选择,于是开始搭建环境,服务器 192.168.1.10 客户端 192.168.1.12
/etc/exports
/var/www/html/files 192.168.1.12(rw,sync)
然后分别把端口开启,
服务器段下的 /usr/sbin/rpcinfo -p 是可以看到的
#/usr/sbin/showmount -e 192.168.1.10
/var/www/html/files 192.168.1.12

但我在客户端去查看的时候确给我提示
#showmount -e 192.168.1.10
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)

# mount -t nfs 192.168.1.10:/var/www/html /files/ /var/www/html/files/ -o proto=tcp -o nolock
mount.nfs: Connection timed out

请问我应该如何去找寻问题?
...全文
392 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
yong_f 2011-05-12
  • 打赏
  • 举报
回复
/etc/exports这样写
/opt (rw,no_root_squash)
如果是fc系统的话好像是这么定的
/opt *(rw,no_root_squash)需要加个*
nfs服务器是否已经启动。
service nfs start

然后关闭防火墙。
service iptables stop

客户用端

mount -t nfs -o nolock IP:/opt /mnt
就可以了
steptodream 2011-05-12
  • 打赏
  • 举报
回复
楼主好像已经解决了 防火墙的问题
qiyu1988 2011-05-12
  • 打赏
  • 举报
回复
/etc/exports加上服务器的ip,在服务器端先mount下/var/www/html/files,如果OK,在服务器端试试能不能ping通服务器

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧