指定自动挂载的目录

1.修改主配置文件,指定一个主目录 以及该目录的子配置文

[root@ceclient ~]# vim /etc/auto.master

###

14 /nfs_auto /etc/auto.nfs_auto

###

2.创建子配置文件

[root@ceclient ~]# vim /etc/auto.nfs_auto

###

fromserver 192.168.52.100:/nfs_server #将在/nfs_auto目录中创建fromserver子目录 并将服务端的共享目录挂载于此

###

3、重启autofs并验证

[root@ceclient ~]# systemctl restart autofs

[root@ceclient ~]# cd /

[root@ceclient /]# tree nfs_auto/

nfs_auto/

0 directories, 0 files

#以下为验证内容

全部评论
又学了一招
点赞 回复 分享
发布于 昨天 11:42 北京

相关推荐

牛牛牛🐮🐎🐎�...:me,too 直接说我后面过不了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务