LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1099|回复: 5

nfs配置出错,大家帮帮找下原因,谢谢

[复制链接]
发表于 2007-8-6 04:21:53 | 显示全部楼层 |阅读模式
我的步骤如下:

# service iptables stop

#vi /etc/exports
在该文件中添加:
/home/work 192.168.0.*(rw,sync,no_root_squash)

#vi /etc/hosts.deny
在该文件中添加:
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

#vi /etc/hosts.allow
portmap:192.168.0.189            //我的ip
lockd:192.168.0.189
mountd:192.168.0.189
rquotad:192.168.0.189
statd:192.168.0.189

#/etc/init.d/portmap start
#/etc/init.d/nfs start

#mount -t nfs <your-server-ip>:/home/lqm /mnt
回环检测就不行了,显示 mount:RPC: Renote system error -Connection refused
发表于 2007-8-6 08:29:33 | 显示全部楼层
man exports
你会发现这么一句,
Wildcard  characters  generally do  not  work on IP addresses, though they may work by accident when reverse DNS lookups fail.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-6 11:12:39 | 显示全部楼层
Post by proge
man exports
你会发现这么一句,
Wildcard  characters  generally do  not  work on IP addresses, though they may work by accident when reverse DNS lookups fail.



非常感谢你的回复。
但我#man exports后没有找到这句话。
我看了这句话的意思是ip地址的通配符出现有问题,我把192.168.0.*该为具体的192.168.0.189 还是有问题。showmount 不成功。
问题到底在哪里呢?
回复 支持 反对

使用道具 举报

发表于 2007-8-6 11:32:23 | 显示全部楼层
vi /etc/exports
在该文件中添加:
/home/work 192.168.0.*(rw,sync,no_root_squash)



#mount -t nfs <your-server-ip>:/home/lqm /mnt


你在exports里面设置的/home/work目录,还在Mount的时候选择/home/lqm,什么原因阿,应该:
#mount -t nfs <your-server-ip>:/home/work  /mnt
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-6 19:32:50 | 显示全部楼层
这个是复制人家写的,忘了改了。做的时候是
# mount -t nfs 192.168.0.189:/home/work /mnt

你在exports里面设置的/home/work目录,还在Mount的时候选择/home/lqm,什么原因阿,应该:
#mount -t nfs <your-server-ip>:/home/work  /mnt[/QUOTE]
回复 支持 反对

使用道具 举报

发表于 2007-8-7 10:03:47 | 显示全部楼层
cat /var/log/message 看一看日志纪录!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表