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

  • 相关阅读:
    ORA-65114
    Mariadb 10.14 mysqldump error: 1049
    nginx:403 forbidden
    ORA-01017
    oracle 12C 之 Clone 数据库
    Selinux的基本使用
    This system is not registered to Red Hat Subscription Management
    Emacs: too long for unix domain socket
    hive 之 元数据表结构(Mysql)
    hive之SerDe
  • 原文地址:https://www.cnblogs.com/tarencez/p/10605193.html
Copyright © 2011-2022 走看看