我想将一个位于其他机器上的文件夹挂载到我的 linux
服务器上。为了实现这个目标,我使用以下命令:
mount -t nfs 192.xxx.x.xx:/opt/oracle /
Which is executing with the following error
mount.nfs: access denied by server while mounting 192.xxx.x.xx:/opt/oracle
有人知道发生了什么吗?我是Linux的新手。
我想将一个位于其他机器上的文件夹挂载到我的 linux
服务器上。为了实现这个目标,我使用以下命令:
mount -t nfs 192.xxx.x.xx:/opt/oracle /
Which is executing with the following error
mount.nfs: access denied by server while mounting 192.xxx.x.xx:/opt/oracle
/etc/exports
文件以导出所需目录,然后启动NFS守护程序。mount -t nfs {remote_pc_address}:/remote/dir /some/local/dir
根据我的了解,请尝试使用您的主目录,因为您不能直接将任何内容转储到根目录。
有关更多参考,请在此处找到完整的配置步骤。
mount -t nfs 192.xxx.x.xx:/opt/oracle /opt/oracle
命令,但最好在NFS服务器上编辑/etc/exports
文件,在本地机器上编辑/etc/fstab
文件。 - Basile Starynkevitch/etc/exports
- Omkar