Linux下autofs自动挂载+samba服务

一、autofs: 在客户端实现自动挂载卸载的软件

[root@tese ~]# dnf install autofs -y
[root@tese ~]# ls -l /net/服务未重启此目录不存在
ls: cannot access '/net/': No such file or directory
[root@tese ~]# systemctl restart autofs.service 
[root@tese ~]# ls -l /net/此目录存在
total 0

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

[root@tese mnt]# systemctl restart autofs.service 
测试效果

在这里插入图片描述

发布了46 篇原创文章 · 获赞 6 · 访问量 1340

猜你喜欢

转载自blog.csdn.net/qq_46089299/article/details/104971702