Linux NIS
×÷Õß ØýÃû¼¼Êõ
À´Ô´ Linuxϵͳ
ä¯ÀÀ
·¢²¼Ê±¼ä 2012-07-04
files nis ʹÓÃÕßµÄȺ×éÐÅÏ¢²éÑ°
ÓµÓе۹úÒ»ÇУ¬½ÔÓпÉÄÜ¡£»¶Ó·ÃÎÊphome.net hosts: files nis dns Ö÷»úÃû³ÆÓëIP¶ÔÓ¦µÄ²éÑ° 8.# service ypbind start //Æô¶¯ypbind·þÎñ³ÌÐò 9.# mount -t nfs 192.168.1.1:/home /home //¹ÒÔØNFSÎļþϵͳ ÕâÑùÒ»À´,ÄúµÄ NIS Clients ¾Í¾ßÓÐºÍ NIS Server Ö÷»úһģһÑùµÄËÞÖ÷Ŀ¼ÁË »òÕßÉèÖÃΪ×Ô¶¯¹ÒÔرà¼/etc.fstabÎļþ¼ÓÈëÐÐ nis:/home/ /home nfs defaults 0 0 10.# yptest # ypwhich µ¥´¿Ê¹Óà ypwhich µÄʱºòÏÔʾµÄÊÇ¡ºNIS Client µÄ domain¡»Ãû³Æ # ypwhich -x ¼ÓÈë -x Õâ¸ö²ÎÊýʱÔòÊÇÏÔʾ¡ºNIS Client Óë Server Ö®¼ä¹µÍ¨µÄÊý¾Ý¿âÓÐÄÄЩ£¿¡» # ypcat -x Ö÷ÒªµÄ¹¦ÄܾÍÊÇ¡ºÁгöÊý¾Ý¿â¡»†ª£¡Óë ypwhich -x Ïàͬ¹¦ÄÜ # ypcat [Êý¾Ý¿âÃû³Æ»ò¹¦ÄÜ] Õâ¸öÖ¸Áî¿ÉÒÔÓÃÀ´È¡µÃ NIS Server ÉÏÃæ¸÷¸öÊý¾Ý¿âµÄÄÚÈÝ # ypcat passwd ¾ÙÀýÀ´Ëµ,ÎÒÃÇÏëÒªÖªµÀ passwd ( ÃÜÂëÊý¾Ý ) µÄËùÓÐʹÓÃÕßÄÚÈݾÍÐèҪʹÓÃÕâÌõÃüÁî # yppasswd ÔÚ NIS Client ¶ËÐ޸ĸ÷¸öÕ˺ŵÄÃÜÂë ²»Ì«½¨Òé´ó¼ÒʹÓÃÕâЩָÁîÈ¥ÐÞ¸ÄÊý¾Ý¿âµÄÄÚÈÝÀ²£¡±È½Ï½¨ÒéÕâÑù×ö£º ¡¡ µÇÈëµ½ NIS Server Ö÷»úÀïÃæÈ¥,½øÐÐ useradd »òÕßÊÇ passwd ÐÞ¸ÄÕ˺ÅÓëÃÜÂëµÈµÈ µÄ¸ü¶¯£» ʹÓà /usr/lib/yp/ypinit -m ÖØÐÂÖÆ×÷Êý¾Ý¿âµµ°¸£¡ 11.ÑéÖ¤ ÓµÓе۹úÒ»ÇУ¬½ÔÓпÉÄÜ¡£»¶Ó·ÃÎÊphome.net |
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |
Äã¿ÉÄܶÔÏÂÃæµÄÎÄÕ¸ÐÐËȤ
¹ØÓÚLinux NISµÄËùÓÐÆÀÂÛ