主机一:
OS: redhat linux 5.4
IP : 192.168.1.109
主机二:
OS:redhat linux 5.3
IP:192.168.1.108
现在,想在主机二mount主机一的/share 目录,主机一配置共享目录/share
开始:
在主机一上配置文件/etc/exportfs
/share -rw
重启NFS服务
[root@oracle11gR1 share]# service nfs restart
关闭 NFS mountd: [确定]
关闭 NFS 守护进程: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS 守护进程: [确定]
启动 NFS mountd: [确定]
在主机二
[root@oracle11gR2 ~]# mount -t nfs 192.168.1.109:/share /share
mount: 192.168.1.109:/share failed, reason given by server: 权限不够
出现此错误
解决方法
在主机一上添加有权主机
[oracle@oracle11gR1 share]$ cat /etc/exports
/share 192.168.1.108(rw,sync)
重启nfsfuw
主机二上再次mount 正常
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7551038/viewspace-614559/
,如需转载,请注明出处,否则将追究法律责任。