linux_文件夹实现挂载(必须在同一网段)

  • 将外部想要挂载传输的目录开启共享文件夹

  • 首先进行安装

    • yum install nfs-utils rpcbind

    • yum install nfs*

  • 建立想要挂载的目录

  • 查看可以执行挂载的目录有哪些

    • showmount -e 192.9.100.191(共享文件夹所在的ip)

  • mount -t nfs 192.9.100.191:可以挂载的目录路径 想要挂载的目录(为了实现nfs传输进行挂载)

    • 例:mount -t nfs 192.9.100.191:/mnt/md0/public /mount

  • 查看所有挂载的文件目录

    • df -h

  • 一个系统下大文件传输想要查看路径需在前面加上ip

    • scp -r /data/tile/r_google_satellite/0-7-0-0-0.ptp root@192.9.100.102:/mount/satellite_data/

原文地址:https://www.cnblogs.com/lxyuuuuu/p/9640507.html