一。 Server .config( 游戏 )
1. Need open LAN DNS , DHCP , NFS , PORTM.AP , YPSERV AND YPPASSWDD serv.er 婚庆
2. Add users
# mkdir /export/home./ -p.--------------彩票
#. useradd -d /export/.home/gohw -g users gohw 电子
. 3. Config yp.conf and n.sswitch.conf.
# vi /etc/yp.c.onf 汽车
domain weblenda.r.com .server manchester<性病>
. # vi /e.tc/nsswitch.conf.
pa.sswd.: files nis( 游戏 )
shadow:. files ni.s外贸
gro.up: file.s nis<性病>
. bootparams: files nis . .
. a.utomount: files nis[成人用品]
aliases: . .files nis 婚庆
4.. Config .YP Makefile 外贸
# cd /var/.yp 汽车
# cp -p Makefile Ma.kefile..orig 电子
# vi Makefile .. .
a.ll: passwd group hosts rpc services netid protocols mail auto.master a . . uto.home \ ###at 109 lin.e #NOTE don't have space,only can use. tab,it's incredibly..
5. Crea.te the /etc/netg.roup file.
# vi ./etc/netgroup学习
clients (edinburgh,,weblendar.com) (edinburgh.weblendar.co.m,,weblendar.com) (bristol,,weblendar...com) (bristol.weblendar.com,,weblendar.com.).
servers (manchester,,weblendar.com) (manchester.webl.endar.co.m,,.weblendar.com)[成人用品]
nodes ser..vers clients健康
###NOTE in clietns and server .line,mustn't have "ENTER". .###I..f you config this ,your NFS will be limited,you must add machine in this file,you .can use NFS..
6. Con.fig autofs server for client (auto..master and auto.home)投资
# vi /etc/.auto.ma.ster服务器
/expo.rt/home /etc/auto.home .--timeout=300.
# vi /etc/aut.o.home(广告)
jiangt manche.ster:/export/home./&.
yangb man.chester:/expo.rt/home/& 美容
7. Initialize the NIS m.ap. database--- 印刷
# /usr/lib/yp/ypinit -m ###press '^D' when done, an.d confirm the .informati.on. 健康
8. Star.t the server 杀毒
# servic.e. ypserv start 电影
#. ser.vice yppasswdd start.
. # servi.ce bind start.
. 9. Config NFS[成人用品]
# vi ./etc/exports电脑
/e..xport/home @clients(rw,no_root_squash,sync)( 游戏 )
# service nfs star.t if you had already start n.fs,you can u.se #exportfs -r<性病>
# exportfs. ###chec.k nfs电脑
. 10. conf.ig secure NIS binding<性病>
.# v.i /var/yp/securenets教育
# Always allow access .for .localhost.
. 255.255.255.0 127..0.0.1 电子
. # edinburgh.
host 192.1.68..1.21 电子
. # bristol--- 印刷
hos.t 1.92.168.1.22 乙肝
11. Push the changes into .t.he NIS maps虚拟主机
. # cd /var/yp.
# make
12.R.eboot Server .
. # service ypse.rv restart健康
# s.ervice ypp.asswdd restart 婚庆
. # exportfs -r
二。 Cient .config(广告)
1. Boot. from NIS学习
# a.uthconfig 建材
. option NIS donain:weblend.ar.com server:manchester.
2. Autoconfig
# service autofs stop.[成人用品]
#. rm -rf /etc/auto.*教育
# rm -rf /h.ome /mis.c.
3. Con.fig nsswitch.conf 婚庆
passwd: . nis files.
shadow: n.is files(广告)
group: nis f.iles.
. automount nis files.
netgr.oup nis files(广告)
4. Mkdir /e.xport/home dir.ectory外贸
# .mkdi.r /export/home -p电脑
. # ln -s /export/h.ome /home.
5. .Reboo.t autofs and ypbind service电脑
.. # service autofs restart电影
# servi.ce ypbind. restart.
6.Reboot Client and you. can use NIS log o.n..