- 論壇徽章:
- 0
|
本帖最后由 610302547 于 2012-09-24 12:13 編輯
回復(fù) 1# smallfish
使用autofs:
- 在NIS服務(wù)器配置:
- 開啟nfs服務(wù)
- [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 ]
復(fù)制代碼 |
|