一.linux挂载windows

  1.windows目录打开共享;

  2.mount -t cifs -o username=admin***tor,password=abc //192.168.***.***/目录 /home/sharestore/windows/

 

二.linux挂载linux

  1.检查是否安装以下服务:

    rpm -qa | grep nfs-utils

    rpm -qa | grep rpcbind

  2.若没有则安装:

    yum -y install nfs-utils
    yum -y install rpcbind

  3.配置nfs访问目录/etc/exports,默认为空,添加一行(开放目录权限给指定主机):

    /test 192.168.***.102(rw,no_root_squash,no_all_squash,async)

     刷新配置:

    exportfs -a

  4.启动以下服务:

    systemctl start rpcbind.service
    systemctl start nfs.service

  5.服务器创建挂载点:

    mkdir /mnt/test102

  6.挂载nfs:

    mount -t nfs 192.168.***.101:/test /home/test102

 

三.卸载

  umount /home/test102

 

参考:

  https://blog.csdn.net/u012272186/article/details/81010407

  https://www.cnblogs.com/freeweb/p/6593861.html

相关文章:

  • 2021-12-08
  • 2021-12-05
  • 2021-12-24
  • 2021-09-11
  • 2021-05-24
  • 2021-11-20
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-10-13
  • 2021-12-05
  • 2022-01-25
  • 2021-05-30
  • 2021-06-18
  • 2021-04-04
相关资源
相似解决方案