









记录正在发生的一切
写在前面
记录我学习和实践中正在发生的一切
标签
AI工具 Anadius APNG C++ DeepSeek Docker Electron GIF GitHub Hexo Linux Markdown Mermaid mizuki Mizuki Office PAC Python Steam Tampermonkey The Sims 4 Visual Studio Windows SDK 个人成长 个体觉醒 产品设计 代理设置 加密 动效 博客写作 备份 安全 实用工具 工具 排坑 时间维度 服务部署 杂谈 权力反思 模拟人生4 汉化教程 油猴脚本 测试 温柔记录 游戏 游戏感悟 演示 漫画 独立开发 示例 视频 系统 网盘工具 网站维护 网络 网络代理 网络配置 自动化 自定义 自我觉察 软件推荐 软路由 远程控制 避坑 音乐播放器 黑神话悟空
站点统计
34
7
66
41,499
0 天
0 天前
一
二
三
四
五
六
日
170 字
1 分钟
Linux 存储与 NFS 服务配置
本文介绍 Linux 系统中的 NFS 服务配置及文件存储管理的相关内容。
NFS 服务配置#
{% tabs nfs %}
基础安装#
1dnf -y install rpcbind nfs-utils2systemctl start rpcbind3systemctl start nfs-server4systemctl enable rpcbind5systemctl enable nfs-server配置文件#
编辑 /etc/exports:
1/share1 *(sync,ro) 192.168.x.x(sync,rw,no_root_squash)2/share2 192.168.x.0/24(sync,ro)权限说明#
{% note primary %}
- rw/ro: 读写/只读权限
- sync/async: 同步/异步写入
- root_squash: root用户权限压制
- no_root_squash: 保留root权限
备份策略#
备份要点#
- 创建备份目录
- 配置NFS共享
- 设置自动挂载
- 配置定时任务
下载工具#
NFS工具包::https://pkgs.org/download/nfs-utils
{% folding cyan, 备份脚本示例 %}

1#!/bin/bash2date="$(date +%F)"3cp /etc/passwd /mnt/pass_$date{% endfolding %}#
Linux 存储与 NFS 服务配置
https://blog.jisuk.top/posts/linux存储/ 部分信息可能已经过时