利用mount命令将另外一个linux服务器上的目录挂在到本机
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
被挂载机(文件服务器):192.168.1.100
挂载到机(实际上传文件机):192.168.1.200
主要是利用NFS服务来完成:
你先要在192.168.1.100上开启NFS服务并编辑/etc/exports文件:
chkconfig --level 35 nfs on ;开启NFS启机运行
service nfs start ;手动启动服务
vi /etc/exports,
加入:
/fileserver 192.168.1.200 (rw,sync,no_root_squash) ;编辑需要共享的目录和允许访问的服务器及权限。
还如:
/opt/apache-tomcat-6.0.37/webapps/fileShare/file * (rw,sync,no_root_squash)
/mnt * (ro,sync)
然后到192.168.1.200
mkdir /fileserver
chmod 777 -R /fileserver
mount 192.168.1.100: /fileserver /fileserver
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:1 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献3条内容
所有评论(0)