zoukankan      html  css  js  c++  java
  • linux局域网内挂载其它操作系统目录

    一.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

  • 相关阅读:
    Docker ntpdate Permition error
    Sublime+Golang Plugin
    顺序表和链表的区别
    Python 性能优化——对象绑定
    Fix git 提交代码错误
    UVa 10523
    UVa 10551
    UVa 10814
    UVa 10925
    Practice Round China New Grad Test 2014 报告
  • 原文地址:https://www.cnblogs.com/tarencez/p/10605193.html
Copyright © 2011-2022 走看看