mount挂载另一台机器到本地

阅读更多

被挂载机(文件服务器):192.168.1.10

 

挂载到机(实际上传文件机):192.168.1.20

 

主要是利用NFS服务来完成:

 

你先要在192.168.1.10上开启NFS服务并编辑/etc/exports文件:

systemctl enable nfs

systemctl start nfs ;手动启动服务

vi /etc/exports,

 

加入:

/nfs 192.168.1.20(rw,no_root_squash,no_all_squash,async)

 

还如:

 

/opt/apache-tomcat-6.0.37/webapps/fileShare/file        *                  (rw,sync,no_root_squash)

/mnt                                                                               *                  (ro,sync)

 

 

 

然后到192.168.1.20

 

mkdir /nfs

chmod 777 -R /nfs

mount 192.168.1.10: /file  /nfs

 

问题:mount异常

mount: wrong fs type, bad option, bad superblock on 192.168.1.10:/file,

解决:

yum install nfs-utils

你可能感兴趣的:(linux,mount)