autofs配置小结
来源:互联网 发布:厦门淘宝摄影 编辑:程序博客网 时间:2024/05/22 16:57
autofs一般与ldap、nfs协作实现远程home目录。
编辑主配置文件:
vim /etc/auto.master
/mnt /etc/auto.nfs
新建auto.nfs配置文件:
vim /etc/auto.nfs
nfs 192.168.17.253:/mnt/share
/mnt下没有nfs目录:
[root@rhel6-client ~]# ls -al /mnt
total 4
drwxr-xr-x. 2 root root 0 Feb 26 12:35 .
dr-xr-xr-x. 27 root root 4096 Feb 26 12:35 ..
重启autofs服务:
[root@rhel6-client ~]# service autofs stop
Stopping automount: [ OK ]
[root@rhel6-client ~]# service autofs start
Starting automount: [ OK ]
[root@rhel6-client ~]# ls -al /mnt
total 4
drwxr-xr-x. 2 root root 0 Feb 26 12:45 .
dr-xr-xr-x. 27 root root 4096 Feb 26 12:35 ..
访问/mnt/nfs时,该目录自动挂载:
[root@rhel6-client ~]# ls -al /mnt/nfs
total 8
drwxr-xr-x. 2 nobody nobody 4096 Feb 25 19:58 .
drwxr-xr-x. 3 root root 0 Feb 26 12:45 ..
-rw-r--r--. 1 nobody nobody 6 Feb 25 19:58 share.txt
[root@rhel6-client ~]#
REF: http://linux.vbird.org/linux_server/0330nfs.php#nfsclient_autofs
- autofs配置小结
- autofs配置小结
- AutoFS 配置方法
- linux nfs,autofs配置
- autofs
- Linux 5.3下配置nis+nfs+autofs
- linux autofs自动挂载服务配置
- NFS服务器配置和autofs自动挂载
- NFS服务器的配置和autofs自动挂载
- autofs用户指南
- autofs简介
- automount and autofs
- autofs 自动挂载.
- automount和autofs
- autofs 自动挂载
- Linux_RHEL7_LDAP、Autofs服务
- Linux_NIS+NFS+Autofs
- Linux_LDAP+NFS+autofs
- 图文例解C++类的多重继承与虚拟继承
- 最优二叉树
- 万能百家乐大师
- http://acm.hdu.edu.cn/showproblem.php?pid=2852&&树状数组+二分
- 最多、最少使用优先级算法
- autofs配置小结
- jcyHelper 快速建站系列【1】:我的目标
- Android培训班(91)内核解压过程4
- hadoop
- AWS Management Console。来自http://www.88lei.com
- 工资计算问题,类似计算某天是一年中的第几天的问题
- C# Code Builder V1.2 (C#代码生成器) 产生支持多种数据库的实体代码
- 日文输入常见问题解决
- 什么样的编程语言和编程工具会流行?