Linux:配置客户端自定义autofs服务

Linux:配置客户端自定义autofs服务

修改autofs的主策略文件

bash 复制代码
[root@server200 data]# vim /etc/auto.master

# 修改内容如下
/misc   /etc/auto.misc
# 挂载目录的上级目录
/mnt    /etc/auto.timinglee --timeout=3

修改autofs的自定义策略文件

bash 复制代码
[root@server200 data]# vim /etc/auto.timinglee

# 修改内容如下
# 最终挂载点		挂载参数   网络文件系统资源
timinglee       -rw     172.25.254.100:/data

**最终的挂载目录为 /mnt/timinglee **

访问测试

bash 复制代码
[root@server200 ~]# cd /mnt/
[root@server200 mnt]# ls
[root@server200 mnt]# cd timinglee
[root@server200 timinglee]# ls
file1  file2  file3  file4  file5

[root@server200 ~]# df
Filesystem            1K-blocks    Used Available Use% Mounted on
devtmpfs                   4096       0      4096   0% /dev
tmpfs                    991084       0    991084   0% /dev/shm
tmpfs                    396436    6188    390248   2% /run
/dev/mapper/rhel-root  16353280 4218868  12134412  26% /
/dev/nvme0n1p1           404128  240060    164068  60% /boot
/dev/sr0                8847936 8847936         0 100% /rhel9
tmpfs                    198216      52    198164   1% /run/user/42
tmpfs                    198216      36    198180   1% /run/user/0
172.25.254.100:/data   16353280 4217856  12135424  26% /mnt/timinglee
相关推荐
ITKEY_7 分钟前
macOS brew 安装的nginx 文件在哪里?
运维·nginx·macos
Felix-lxd33 分钟前
Ubuntu 22.04 配置 Nginx
linux·nginx·ubuntu
Elastic 中国社区官方博客34 分钟前
如何比较两个 Elasticsearch 索引并找出缺失的文档
大数据·运维·数据库·elasticsearch·搜索引擎
大E帝国子民11 小时前
MacOS 安装Seismic Unix
服务器·macos·unix
Tim_Van2 小时前
在 CentOS 7 中安装 Chromium 的完整步骤
linux·运维·chrome·centos
2023自学中2 小时前
C++ 内存追踪器
linux·c++
孫治AllenSun2 小时前
【Nginx】配置参数和使用案例
运维·nginx
啵啵鱼爱吃小猫咪3 小时前
Ubuntu 20.04 + ROS Noetic 源码安装 libfranka 0.8.0 和 franka_ros 0.8.0 完整教程
linux·运维·ubuntu
Piko6144 小时前
锐捷 VSU 虚拟化堆叠配置
运维·网络·笔记
ljs6482739514 小时前
Linux运维实操:vi编辑器永久配置静态IP(CentOS系列)
linux·运维·编辑器