Cd Chen's Services

ba ba ba la~~

關於NIS

1.老師,這樣設定順序上,內容上正確嗎?有哪裡需要改進的?@@" 2.如果沒設定client家目錄,是否連登入都無法登入呢? (環境關係,沒辦法測試) 3.為什麼沒有自動斷行= ="?? <以下省略檢查動作....使用者為nis001-009> [root@linux ~]# nisdomainname nisdomain [root@linux ~]# nisdomainname [root@linux ~]# vi /etc/rc.d/rc.local /bin/nisdomainname nisdomain [root@linux ~]# vi /etc/sysconfig/network NISDOMAIN=nisdomain HOSTNAME=master.nisdomain [root@linux ~]# vi /etc/hosts 192.168.0.1 master.nisdomain 192.168.0.2 client.nisdomain [root@linux ~]# vi /etc/exports #想用autofs設定clinet家目錄 /home 192.168.0.0/24(rw,async) [root@linux ~]#service nfs restart [root@linux ~]#service portmap start [root@linux ~]#service ypserv start [root@linux ~]#service yppasswdd start [root@linux ~]# /usr/lib/yp/ypinit -m [root@linux ~]#service ypserv restart [root@linux ~]#service yppasswdd restart [root@linux ~]# nisdomainname nisdomain [root@linux ~]# nisdomainname [root@linux ~]# vi /etc/rc.d/rc.local /bin/nisdomainname nisdomain [root@linux ~]# vi /etc/sysconfig/network NISDOMAIN=nisdomain HOSTNAME=client.nisdomain [root@linux ~]# vi /etc/hosts 192.168.0.1 master.nisdomain 192.168.0.2 client.nisdomain [root@linux ~]#vi /etc/auto.master /home /etc/auto.nishome --timeout=30 [root@linux ~]#vi /etc/auto.nishome #user=nis001-009 nis* -fstype=nfs,rw 192.168.0.1:/home [root@linux ~]#authconfig-tui Domain: nisdomain Server: 192.168.0.1 [root@linux ~]#service portmap start [root@linux ~]#servcie autofs restart [root@linux ~]#service ypbind start

這篇內容的 Trackback 網址:

http://cdchen.idv.tw/trackback/883