Hostname zou.com
Vim/etc/hosts
Service IP zou.com domain name zou.com host name
Vim/etc/sysconfig/network
Modify the host name to Zou.com
Nis_domain=zou.comn Domain
Ping zou.com Test
Nisdomainanme zou.com designated Domain name
Yum List | grep YPSERCV Yp-tools
Yum Isntall Ypserv Yp-tools
/etc/init.d/yperv start
Chkconfig Ypserv on
/etc/init.dyppasswdd start
Chkconfig Yppasswdd on
Create three users, assign a password
/usr/lib64/yp/ypinit-m starting the domain service, crtl+d creating the domain
Client
Rpm-qa | grep ypbind
Sytstem-config-authentication Select nis,zou.com, enter the service's IP
Server
Confirm that the iptables is closed, or that you have made the appropriate rules
TAIL/ETC/PASSWD See the new user at this time Su-user, will enter the terminal
Vim/etc/exports
/home 192.168.0.0/24 (Rw,no_root_squash)
Exportfs-rv
/etc/init.d/nfs restart
SHOWMOUNT-E Service IP remote detection
Client
Vim/etc/auto.master
/home/etc/auto.home
Cp/auto.misc/auto.home
Vim/etc/auto.home
*-RW,SOFT,INTR Clothing ip:/home/&
Reboot, you can log in with a new user, which is the domain user
This article is from the "Arctic Linux" blog, be sure to keep this source http://941012521.blog.51cto.com/9253690/1658512
Linux establishes a domain environment NIS