[英]Mounting a folder from other machine in linux
I want to mount a folder which is on some other machine to my linux
server. 我想将其他机器上的文件夹挂载到我的
linux
服务器上。 To do that i am using the following command 为此,我使用以下命令
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
Do anyone knows what's going on ??? 有谁知道发生了什么? I am new to linux.
我是linux的新手。
Depending on what distro you're using, you simply edit the /etc/exports
file on the remote machine to export the directories you want, then start your NFS daemon. 根据您正在使用的发行版,您只需编辑远程计算机上的
/etc/exports
文件以导出所需的目录,然后启动NFS守护程序。
Then on the local PC, you mount it using the following command: 然后在本地PC上使用以下命令安装它:
mount -t nfs {remote_pc_address}:/remote/dir /some/local/dir
Please try with your home directory as per my knowledge you can't dump anything directly on root like that. 请根据我的知识尝试使用您的主目录,您不能直接在根目录上转储任何内容。
For more reference, find full configuration steps here . 有关更多参考,请在此处查找完整的配置步骤
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.