zoukankan      html  css  js  c++  java
  • CentOS7_NFS_永久挂载

    一、环境:
     
    1、OS:CentOS-7-x86_64-DVD-1908.iso;
     
    2、全程使用root账户操作;
     
     
     
     
    二、安装NFS
     
    1、安装服务端: yum   -y    install     rpcbind
     
    2、安装客户端: yum   -y    install     nfs-utils
     
     
     
     
    三、配置共享文件夹
     
    vim  /etc/exports
     
     
     
     
    四、NFS服务管理:
     
    1、systemctl start nfs-server         //启动nfs服务
     
    2、systemctl enable nfs-server       //开机自动启动nfs服务
     
    3、systemctl restart nfs-server      //重新启动nfs服务
     
    4、systemctl stop nfs-server         //停止nfs服务
     
    5、systemctl disable nfs-server     //取消开机启动nfs服务
     
     
     
     
     
    五、永久挂载(rc.local必须具有执行权限)
     

    [root@centos7 rc.d]# vim         /etc/rc.d/rc.local

    mount        -t nfs        nfs_server_ip:/root/laohu        /mnt/laohu
     
    [root@centos7 rc.d]# wq
     
    [root@centos7 rc.d]# chmod 711 rc.local
     
    [root@centos7 rc.d]# reboot
    本文由lnlidawei(https://www.cnblogs.com/lnlidawei)原创或整理,转载请注明出处。
  • 相关阅读:
    hdu 5726 GCD
    codeforces 982C Cut 'em all!
    codeforces 982B Bus of Characters
    codeforces 982A Row
    codeforces 983B XOR-pyramid
    codeforces 979D Kuro and GCD and XOR and SUM
    codeforces 983A Finite or not?
    codeforces 984B Minesweeper
    codeforces 979C Kuro and Walking Route
    codeforces 979B Treasure Hunt
  • 原文地址:https://www.cnblogs.com/lnlidawei/p/12886108.html
Copyright © 2011-2022 走看看