Files
Deploy-Laboratory/docs/01-05-armv7-nfs服务安装.md
jack be97836e0d chore: 清理调试脚本并收敛到 Ansible 流程
移除已废弃的调试/验证脚本与空目录,统一文档与脚本说明到 ansible-playbook 的部署方式,避免失效引用和误用路径。

Made-with: Cursor
2026-03-23 19:18:55 +08:00

44 lines
903 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 01-05-armv7 NFS 服务安装
> 本文只讲 armv7 主机侧 NFS 服务安装与导出配置。
## 前置条件
- 已完成 `01-03-armv7-standalone-docker.md`
- armv7 与 K3s 节点网络互通
## 操作步骤
1. 在 armv7 安装 NFS 服务nfs-utils / nfs-kernel-server
2. 创建导出目录(例如 `/data/nfs`
3. 配置 `/etc/exports`
4. 放行 NFS 端口并启用开机自启
示例(按发行版调整):
```bash
sudo mkdir -p /data/nfs
sudo chown -R nobody:nogroup /data/nfs
echo "/data/nfs 192.168.2.0/24(rw,sync,no_subtree_check,no_root_squash)" | sudo tee /etc/exports
sudo exportfs -rav
sudo systemctl enable --now nfs-server
```
## 验证命令
```bash
showmount -e localhost
sudo exportfs -v
sudo systemctl status nfs-server --no-pager
```
## 预期
- `showmount -e` 可看到导出目录
- NFS 服务为运行状态
## 下一步
- `03-06-k3s-使用nfs存储.md`