linux 使用NSF 映射远程磁盘目录
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
假设源目录在192.168.1.1机器上,目录为/data
客户端集群在192.168.1.2, 需要将192.168.1.1机器上的/data目录到本地的/data目录
1、在两台机器上安装nsf 、 portmap
yum install nfs-utils portmap
2、
在192.168.1.1机器上面修改/etc/exports文件,加入如下内容
/data/ 192.168.1.2(rw,sync,no_root_squash)
表示开放本机器上面/data目录, 主机192.168.1.2对该目录拥有rw权限。其他参数可以去查看nsf文档,这里不解释
然后启用nsf与portmap服务
service rpcbind start
service nfs start
3、
在192.168.1.2机器上面启动nsf与portmap服务然后挂载remote目录
service rpcbind start
service nfs start
mount -t nfs 192.168.1.1:/data/ /data/
现在就可以在192.168.1.2机器上面对/data目录进行读改操作了。




A beautiful web dashboard for Linux
最近提交(Master分支:16 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)