Inside Linux stimpy $ cat ypservers ren.stimpy.net stimpy
Inside Linux stimpy $ cat ypservers ren.stimpy.net stimpy $ stimpy $ ls -al admin total 148 drwxr-xr-x 2 root root 1024 Feb 7 11:16 . drwxr-xr-x 3 root root 1024 Feb 7 11:15 .. -rw——-1 root root 12443 Feb 7 11:16 group.bygid -rw——-1 root root 12448 Feb 7 11:16 group.byname -rw——-1 root root 13287 Feb 7 11:16 netid.byname -rw——-1 root root 12454 Feb 7 11:16 passwd.byname -rw——-1 root root 12452 Feb 7 11:16 passwd.byuid -rw——-1 root root 16335 Feb 7 11:16 rpc.byname -rw——-1 root root 14210 Feb 7 11:16 rpc.bynumber -rw——-1 root root 30012 Feb 7 11:16 services.byname -rw——-1 root root 12369 Feb 7 11:16 ypservers stimpy $ The first map that ypinit creates is the ypservers map, found in the /var/yp directory. This is verified as a result of the ls -al command. The /var/yp/ypservers map file contains a list of hosts that will run as NIS servers. A new directory, /var/yp/admin, is created as a result of the ypinit command. The contents of this domain directory are new NIS maps. For every domain name that exists, a directory reflecting that name will exist within the /var/yp directory. Within each domain directory will be a number of map files. If you refer to the previous dialog, you will notice that the ypinit command queried for a list of hosts that will run NIS servers. The hosts are not required to be running at the time of executing ypinit but should be active NIS servers when it is appropriate. The contents of the /var/yp/ypservers file are also shown in the dialog. Executing ypserv -The Master Server Process After the ypinit command has completed its execution, you can start the NIS master server in one of two ways. You can reboot the system, which is not a productive choice (this is reserved for the Windows operating systems). The second method is to start the server manually, which is quite easy (this is reserved for Linux and UNIX operating systems). The usage for the ypserv command is shown as follows. ypserv [-b] [-d [path]] [-p port] Table 11.2 lists the options that are available to the ypserv command. Table 11.2. Options for the ypserv Command Option Description -d –debug [path] This option is used to execute the server in debug mode. Normally, ypserv reports errors using the syslog facility. The ypserv command will not run as a daemon with this option set. The optional parameter path defines the directory that ypserv should use, instead of /var/yp. -b –dns If the host is not found in the hosts maps, use this option to query the DNS for host information. -p –port port This option specifies the port that ypserv should bind to. -v -version This option prints the version number and exits. The following dialog demonstrates the execution of the ypserv command. stimpy $ ypserv stimpy $ stimpy $ ps x … 1880 tty1 S 0:00 /opt/Office51/bin/soffice.bin 5390 tty1 S 0:05 kvt -T ption Terminal -icon kvt.xpm -miniicon kvt.xpm 5391 pts/0 S 0:00 bash 5702 ? S 0:00 ypserv stimpy $ page 203
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.