ypmake.8yp
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 8YP 代码 · 共 134 行
8YP
134 行
.\" SCCSID: @(#)ypmake.8yp 8.1 9/11/90.TH ypmake 8yp.SH Nameypmake \- rebuild yellow pages (YP) database using the make command.SH Syntax.nf.B cd /etc/yp.fi.B make [ .I options ] [.I map] .SH Description.NXR "ypmake command".NXAM "make command (general)" "ypmake command".NXR "YP data base lookup service" "rebuilding data base"The .PN makecommand uses the .PN /etc/yp/Makefileto build the yellow pages database.With no arguments,.PN makecreates.PN dbmdatabases for any YP maps that are out-of-date,and then executes.MS yppush 8yp to notify slave databases that there has been a change.It is important to note that the.PN ypmake command should only be executed at a YP master server machine. If itis executed from either a slave server or a pure YP client machine, thecreated changes will only be overwritten when the next YP master servermachine update, using.PN ypxfr , is performed. .PPThe .I options argument can be used to change the default values ofthree special variables used by .PN make :.I DIR , .I NOPUSH , and .I DOM .The .I DIR variable instructs .PN maketo give the directory of the source files.The .I NOPUSH variable, which when non-null, inhibits updating of the new database files using the.MS yppush 8ypfunction.The .I DOM variable, instructs.PN make to construct a domainother than the master's default domain.The default for .I DIR is.PN /etc ,and the default for .I NOPUSH is the null string.To change the default values of these special variables, an .I optionsargument format of .I special_variable = valueis used. See the Examples section for an example..PPThe.I mapargument supplied on the command line instructs.PN maketo update only the specified map.The specified maps are those located at.PN /etc/yp/{domain},where {domain} is the yellow pages domain name.Some typical entries for the.I map argument are passwd, hosts, and networks.Typing.PN "make passwd"causes.PN make to create and update the YP password database, if it is out of date.The .PN makecommand updates the password data base using .MS yppush 8yp .Therefore, typing .EXmake host.EEor.EXmake networks.EEcauses .PN make to create and to updatethe host and network files,.PN /etc/hostsand.PN /etc/networks respectively..PPSee.MS ypfiles 5ypand.MS ypserv 8ypfor an overview of the yellow pages..SH ExamplesThis example causes .PN make to create a password yellow pages map for the domain.PN NewDomaininstead of for the default domain:.EXmake DOM=NewDomain passwd.EE.SH See Alsomake(1), makedbm(8yp), ypserv(8yp), yppush(8yp)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?