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
  • 相关阅读:
    毕设(五)ListView
    毕设(四)ListBox
    毕设(三)NotifyIcon
    hdu 1.2.3
    ZOJ 1789 The Suspects
    ZOJ 2833 Friendship
    git
    yum wget rpm
    上传绕过
    LAMP 和 LNMP
  • 原文地址:https://www.cnblogs.com/mangoVic/p/10335191.html
Copyright © 2011-2022 走看看