注册 登录
编程论坛 Linux教室

ubuntu 安装配置nfs 问题

wqa007 发布于 2009-07-18 11:24, 1536 次点击
apt-get install nfs-kernel-server nfs-common
sudo vim /etc/exports
exports内容如下:
******************************************
#/etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
#/srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
/home/nfs *(rw,sync,no_root_squash)
*****************************************
 sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-kernel-server restart
一切都没问题 接着问题出来了如下:
showmount -e
showmount: RPC: Program not registered


接着错误
sudo mount -t nfs 10.10.206.21:/home/nfs /mnt
mount.nfs: access denied by server while mounting 10.10.206.21:/home/nfs
hosts.deny
*****************************
 . . . . . .
# # # NFS DEMONS
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
********************************
hosts.allow
********************************
. . . . . .
# # # NFS DAEMONS
portmap:10.10.206.
lockd:10.10.206.
rquotad:10.10.206.
mountd:10.10.206.
statd:10.10.206.
*******************************
哪里有问题啊?帮忙看看吧 谢谢了!!!!

[[it] 本帖最后由 wqa007 于 2009-7-18 15:06 编辑 [/it]]
1 回复
#2
cuixingasd2009-09-23 09:29
你确定你关闭了防火墙?
1