JAVA SCRIPT

RH 253: HOW TO SET UP NIS MASTER AND SLAVE



    MASTER ENTRY WHILE SETTING UP SLAVE


1. vim /var/yp/Makefile
   NOPUSH=False

2. /usr/lib/yp/ypint -m
3. service ypserv restart



        SLAVE ENTRIES

1.  yum install ypserv
2.  vim /etc/sysconfig/network
    NISDOMAIN=RHCE
3. service network restart
4. nisdomainname RHCE
5. service ypserv restart
6. /usr/lib/yp/ypinit -s <master'shostname) //Better configure Dns or hosts file




            NIS CLIENT

1. authconfig-tui              (Bind to both master,slave ip)
2. ypwhich                     ->shows masters ip
3. Stop ypserv in master
4. ypwhich                     ->shows slave ip



If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!

No comments:

Post a Comment