从linux中的其他机器挂载文件夹

时间:2014-11-10 06:18:47

标签: linux nfs

我想将其他计算机上的文件夹挂载到linux服务器。要做到这一点,我使用以下命令

mount -t nfs 192.xxx.x.xx:/opt/oracle /

执行时出现以下错误

mount.nfs: access denied by server while mounting 192.xxx.x.xx:/opt/oracle

有谁知道发生了什么?我是linux的新手。

1 个答案:

答案 0 :(得分:5)

根据您正在使用的发行版,您只需编辑远程计算机上的/etc/exports文件以导出所需的目录,然后启动NFS守护程序。

然后在本地PC上,使用以下命令安装它:

mount -t nfs {remote_pc_address}:/remote/dir /some/local/dir

请根据我的知识尝试使用您的主目录,您不能直接在根目录上转储任何内容。

如需更多参考,请查找完整的配置步骤here

相关问题