• centos6.5 挂载远程目录


    查看nfs程序是否安装:

    [root@crawler_mv02 ~]# rpm -qa |grep rpcbind
    rpcbind-0.2.0-13.el6_9.1.x86_64
    [root@crawler_mv02 ~]# rpm -qa |grep nfs
    nfs-utils-1.2.3-75.el6.x86_64
    nfs-utils-lib-1.1.5-13.el6.x86_64

    如果没有安装,则安装:

    yum install nfs-utils
    yum install rpcbind

    修改配置:

    [root@crawler_mv02]# vim /etc/exports

    /root 192.168.1.100(rw,sync,no_root_squash)

    重启nfs时如果出错:

    出现这个问题,需要先启动或重启rpcbind:

    重启rpcbind之后再重启nfs:

    执行挂载命令:

    mount -t nfs ip:/remoteDir dir/
    查看挂载:mount |tail -2
    卸载: umount -v 加上客户端的路径
  • 相关阅读:
    关于 Vue
    HTTP 知识点
    JS 的一些原生属性
    JS知识点-2 通信类
    原生JS知识点
    CSS知识点
    HTML知识点
    关于在Ajax中使用pushstate
    JavaScript 中的 This
    观察者模式
  • 原文地址:https://www.cnblogs.com/jessezeng/p/7060197.html
Copyright © 2020-2023  润新知