教育-安装NFS服务端和客户端:NFS服务端安装

时间:2025-02-12 14:52:59

NFS服务端安装

yum install nfs-utils -y

  • 创建共享
    1. 在/etc/exports配置文件中添加以下内容,保存退出;
      /sfs-date/mnt-pro/lab 172.16.79.15/255.255.254.0(rw,sync,no_root_squash)

      或者

      /home 168.170.249.1/24(rw,sync,no_root_squash)

    1. 创建共享目录并给予写的权限
      mkdir /home/ITP/sharechmod o+w /home/ITP/share

  • 启动NFS服务
    systemctl restart rpcbindsystemctl restart nfs-server(nfs)systemctl enable rpcbindsystemctl enable nfs-server(nfs)
support.huaweicloud.com/tcrc-education/tcrc_24.html