LinuxSir.cn,穿越时空的Linuxsir!

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

NFS服务器的问题~~

[复制链接]
发表于 2005-4-17 11:50:45 | 显示全部楼层 |阅读模式
service nfs start
rpcinfo -p
端口侦听全部打开了
service iptables stop
showmount -e localhost
/var/ftp       *.example.org
已经把/var/ftp 和var/ftp/pub权限改为777了。。。

问题是。。。。我怎么挂都说我主机拒绝请求

[root@server ~]# mount -t nfs server.example.org:/pub /mnt
mount: server.example.org:/pub failed, reason given by server: Permission denied
发表于 2005-4-17 12:41:31 | 显示全部楼层
主机和ip对应写到/etc/hosts里呢?

/etc/hosts:

IP address    Host Name    Aliases
127.0.0.1      Blue       localhost
172.16.245.101 RHEL
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-17 13:24:59 | 显示全部楼层
问题解决了。。。。郁闷。。。
提出个注意点
[root@server ~]# mount -t nfs server.example.org:/pub /mnt
这句话。。。你挂的时候不像samba和ftp一样。。。例如/var/ftp/pub~就要写/var/ftp/pub~不要写/pub~~因为它默认是/下面的而不是你在 exports下定义目录下面的=.=
搞死。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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