NFS /etc/exports参数解释

nfs 安装

  • 执行以下命令安装 nfs 服务器所需的软件包

yum install -y nfs-utils

  • 执行命令 vim /etc/exports,创建 exports 文件,文件内容如下:

/root/nfs_root/ *(insecure,rw,sync,no_root_squash)

  • 执行以下命令,启动 nfs 服务
- 创建共享目录,如果要使用自己的目录,请替换本文档中所有的 /root/nfs_root/
mkdir /root/nfs_root

systemctl enable rpcbind
systemctl enable nfs-server

systemctl start rpcbind
systemctl start nfs-server
exportfs -r
  • 检查配置是否生效

exportfs

  • 输出结果如下所示

/root/nfs_root /root/nfs_root

参考:> https://www.cnblogs.com/lgj8/p/12275670.html

posted @   mikadong  阅读(568)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示