- [root@www ~]# /usr/lib64/yp/ypinit -m
- At this point, we have to construct a list of the hosts which will run NIS
- servers. www.centos.vbird is in the list of NIS server hosts. Please continue
- to add the names for the other hosts, one per line. When you are done with the
- list, type a <u><control D></u>.
- next host to add: <u>www.centos.vbird</u> <==系统根据主机名自动捉取
- next host to add: <==这个地方按下 [crtl]-d
- The current list of NIS servers looks like this:
- www.centos.vbird
- Is this correct? [y/n: y] y
- We need a few minutes to build the databases...
- Building /var/yp/vbirdnis/ypservers...
- Running /var/yp/Makefile...
- gmake[1]: Entering directory `/var/yp/vbirdnis'
- Updating passwd.byname...
- Updating passwd.byuid...
- ....(中间省略)....
- gmake[1]: Leaving directory `/var/yp/vbirdnis'
- www.centos.vbird has been set up as a NIS master server.
- Now you can run ypinit -s www.centos.vbird on all slave server.
复制代码 |