zoukankan      html  css  js  c++  java
  • ubuntu18.04搭建nfs

    1.服务端安装

    #apt-get update -y 
    #apt-get install -y nfs-kernel-server
    #apt-get enable nfs-kernel-server

    2.选定目录

    #mkdir -p /data
    #chown nobody:nogroup /data
    #chmod 777 /data
    #echo "/data 100.100.22.1/24(rw,sync,no_subtree_check)" >> /etc/exports
    #exportfs -r
    #systemctl restart nfs-kernel-server

    3.服务端测试

    #showmount -e 127.0.0.1

    4.客户端安装

    #apt-get update -y
    #apt-get install -y nfs-common

    5.选定目录

    #mkdir -p /data

    6.添加挂载

    #echo "100.100.22.20:/data /data nfs rw 0 0" >> /etc/fstab
    #mount -a

    7.联调测试

    #touch 1.txt
  • 相关阅读:
    tarjan algorithm
    最小生成树
    Manacher's Algorithm (马拉车算法)
    KMP
    Trie(字典树)
    Hash
    GDB调试
    图论
    扫描线
    STL
  • 原文地址:https://www.cnblogs.com/mangoVic/p/10335191.html
Copyright © 2011-2022 走看看