RHCE实验-nfs及autofs

本次实验的目的:实现服务端的网络文件共享(配置nfs),且实现客户端的自动挂载(配置autofs)

服务端配置:

关闭防火墙和selinux:

安装软件

root@localhost \~\]# yum install nfs-utils -y ![](https://i-blog.csdnimg.cn/direct/312b3fe5a3b740de949a809b79d25bba.png) 创建需要被挂载的目录 ![](https://i-blog.csdnimg.cn/direct/6951e58dde8f41d7a21de2f9644a4db3.png) 配置文档 ![](https://i-blog.csdnimg.cn/direct/f28dd0ddd21c4f1cbc085560d7d7f7f2.png) ![](https://i-blog.csdnimg.cn/direct/7e9ac56eeeeb416abb06e78718cc3fe2.png) 重启服务: ![](https://i-blog.csdnimg.cn/direct/02578bec17764c7ebb3def136ecefff6.png) 检查: ![](https://i-blog.csdnimg.cn/direct/da26156a153b4a56af33ddddffadd6af.png) 客户端配置: 关闭防火墙和selinux: ![](https://i-blog.csdnimg.cn/direct/41f9258ac3434e0fbea8b51a75bf195b.png) 安装软件: \[root@localhost \~\]# yum install nfs-utils -y \[root@localhost \~\]# yum install autofs -y 配置文档: ![](https://i-blog.csdnimg.cn/direct/68cd5ed8746c4b698e7915757445c1a8.png) ![](https://i-blog.csdnimg.cn/direct/322459d4c88846618d05a349cb3c82e7.png) ![](https://i-blog.csdnimg.cn/direct/97caeea1aa834f8488a9f4366e28ef1f.png) 重启服务 \[root@localhost \~\]# systemctl restart autofs.service 效果: ![](https://i-blog.csdnimg.cn/direct/f2c967a7625449d1863d8b03fffb16cc.png)

相关推荐
啊吧怪不啊吧39 分钟前
UU远程协助迎来升级!第一期更新实测
运维·服务器·远程工作
C_心欲无痕6 小时前
ts - tsconfig.json配置讲解
linux·前端·ubuntu·typescript·json
冰西瓜6007 小时前
国科大2025操作系统高级教程期末回忆版
linux
HIT_Weston7 小时前
93、【Ubuntu】【Hugo】搭建私人博客:面包屑(一)
linux·运维·ubuntu
cuijiecheng20188 小时前
Linux下Beyond Compare过期
linux·运维·服务器
HIT_Weston8 小时前
92、【Ubuntu】【Hugo】搭建私人博客:侧边导航栏(六)
linux·运维·ubuntu
CodeAllen嵌入式8 小时前
Windows 11 本地安装 WSL 支持 Ubuntu 24.04 完整指南
linux·运维·ubuntu
期待のcode8 小时前
前后端分离项目 Springboot+vue 在云服务器上的部署
服务器·vue.js·spring boot
AI 智能服务8 小时前
第6课__本地工具调用(文件操作)
服务器·人工智能·windows·php
码农小韩10 小时前
基于Linux的C++学习——指针
linux·开发语言·c++·学习·算法