nfs挂载(window挂载linux的)

    技术2022-07-16  63

    liunx上

    确保yum好使

    安装环境包   nfs-utils  rpcbind

    yum -y install nfs-utils rpcbind

    创建文件

    mkdir  /root/share

    chmod 777 /root/share

    选择你需要挂载的文件系统

    vi /etc/exports

    /root/share  10.10.1.0/24(rw,insecure,sync,no_root_squash)

    注:权限设置 ro,rw|端口大于1024需要添加insecure

    开机自启

    systemctl enable rpcbind

    systemctl enable nfs

    重启服务

    systemctl restart rpcbind

    systemctl restart nfs

    查看一下

    exportfs

    测试

    showmount -e  localhost

    windows上

    开启nfs客户端后

    运行-cmd

    mount -h  查看一下nfs是否好使

    mount  \\10.10.1.60\awsl  X:

    注挂载盘符要未被使用

    或者

    计算机-映射网络驱动器

    选择未被使用的盘符

    查看一下

    Processed: 0.010, SQL: 9