NIS服务器的配置
<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />nis server 一、查找是否安裝軟件包 rpm -qa | grep yp ypserv(第一張光盤(pán)) ypbind(默認(rèn)安裝) yptools(默認(rèn)安裝) 二、啟動(dòng)時(shí)間服務(wù) chkconfig time on chkconfig time-udp on 三、添加域名<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> vi /etc/hosts 172.16.0.1?? domaintest nisdomainname server vi /etc/rc.local nisdomainname server vi /etc/sysconfig/network NISDOMAINNAME=server 四、認(rèn)證(主配置文件) vi /etc/ypserv.conf host之后添加 127.0.0.0/255.255.255.0? : * : * : none 172.16.0.0/255.255.0.0?? : * : * : none vi /var/yp/securenets host 127.0.0.1 255.255.0.0 172.16.0.0 五、啟動(dòng)服務(wù) service portmap restart service ypserv restart service yppasswdd restart /etc/rc.d/init.d/potmap ypserv yppasswdd start 六、初始化數(shù)據(jù)庫(kù) /usr/lib/yp/ypinit -m 加域名 ctrl+d y
?
nis client 一、安裝所需軟件包 rpm -qa | grep ^yp ypbind(默認(rèn)安裝) yptools(默認(rèn)安裝) 二、域名 vi /etc/hosts 172.16.0.1??domaintest? nisdomainname server vi /etc/rc.local nisdomainname server vi /etc/sysconfig/network NISDOMAINNAME=server 三、配置文件 vi /etc/yp.conf domain server domaintest vi /etc/nsswitch.conf 添加四個(gè)nis,使其支持nis認(rèn)證登陸 四、啟用服務(wù) service portmap restart service ypbing restart /etc/rc.d/init.d/portmap ypbing start?
服務(wù)器建帳戶,客戶端登陸,無(wú)宿主目錄 服務(wù)器(nfs服務(wù)配置) 兩個(gè)包系統(tǒng)默認(rèn)已安裝(nfs-util*.portmap*) vi /etc/exports /home/?? *(rw,sync) service portmap restart service nfs restart exportfs -rv showmount -e 客戶端 mount -t nfs 172.16.0.1:/home/? /home/轉(zhuǎn)載于:https://blog.51cto.com/vdata/60190
總結(jié)
- 上一篇: IT管理人才必备的十大能力(转)
- 下一篇: 小记 | 从 0 到 1,看我如何玩弄千