- 论坛徽章:
- 0
|
本帖最后由 610302547 于 2012-09-24 12:13 编辑
回复 1# smallfish
使用autofs:
- 在NIS服务器配置:
- 开启nfs服务
- [root@app1 migration]# service nfs start
- Starting NFS services: [ OK ]
- Starting NFS quotas: [ OK ]
- Starting NFS daemon: [ OK ]
- Starting NFS mountd: [ OK ]
- c[root@app1 migration]# chkconfig nfs on
- 共享用户家目录
- [root@app1 migration]# cat /etc/exports
-
- /home *(rw,async,root_squash)
-
-
-
- NIS客户端配置:
- [root@app2 ~]# grep /home /etc/auto.master
- /home /etc/auto.nis --timeout=100
- [root@app2 ~]# vim /etc/auto.nis
- [root@app2 ~]# cat /etc/auto.nis
- * app1.com:/home&
- [root@app2 ~]# chkconfig autofs on
- [root@app2 ~]# /etc/init.d/autofs restart
- Stopping automount: [ OK ]
- Starting automount: [ OK ]
复制代码 |
|