⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ypfiles.5yp

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 5YP
字号:
.\" SCCSID: @(#)ypfiles.5yp	8.2	11/9/90.TH ypfiles 5yp.SH Nameypfiles \- Yellow Pages data base and directory structure.SH Description.NXR "ypfiles keyword".NXR "YP map" "format".NXR "YP map" "defined".NXR "YP domain" "defined"The Yellow Pages (YP) data base lookup service uses a data base of.PN dbmfiles in the .PN /etc/ypdirectory hierarchy.A.PN dbmdata base consists of two files, created by calls to the .MS dbm 3xlibrary package.  One has the filename extension .PN \&.pagand the other has the filename extension .PN \&.dir .For instance, the data base named.PN hosts.byname ,is implemented by the pair of files .PN hosts.byname.pagand.PN hosts.byname.dir ..PPA.PN dbmdata base served by YP is called a YP .I map.A YP.I domainis a named set of YP maps.  Each YP domain is implemented as a subdirectory of .PN /etc/yp containing the maps.The number of YP domains that can exist is unlimited.Each domain can contain any number of maps..PPThe YP maps are not required by the YP lookup service, although they maybe required for the normal operation of other parts of the system.The YP lookup service serves all maps. If the map exists in a givendomain and a client asks about it, YP will serve it.  There is,however, a set of default maps that the YP service serves.  The filesrepresenting these maps are listed in this description under Files..PPFor a map to be accessible consistently, it must exist on all YPservers that serve the domain.  To provide data consistency between thereplicated maps, an entry to execute the .PN ypxfrcommand periodically should be made in the .PN /usr/lib/crontabfile on each slave server.  More information on this topic is in .MS ypxfr 8yp .An entry in the .PN /etc/lib/crontabfile must not exist, either on a YP master server or on a pure YP clientmachine..PPThe YP maps should contain two distinguishedkey-value pairs.  The first isthe key YP_LAST_MODIFIED, whose value is a 10-character ASCII order number.  The order number should be the \s-2UNIX\s0 time in seconds when the map was built.  The second key is YP_MASTER_NAME, with the name of the YP master server as a value.  The .MS makedbm 8ypcommand generates both key-value pairs automatically.A map that does not contain both key-value pairs can be served by the YP, but the .PN ypserv process will not be able to return values for ``Get order number''or ``Get master name'' requests.  In addition, values of these two keys are used by.MS ypxfr 8ypwhen it transfers a map from a master YP server to a slave..PPBefore they can be properly accessed, the YP maps must be initiallyset up for both masters and slaves by using the.MS ypsetup 8ypfunction.Further, YP maps must be generated and modified onlyat the master serverlocation.  Copies of the master server YP maps can thenbe transferred to theslave servers using the .MS ypxfr 8ypfunction.If .PN ypxfr is unable to determine a map's location, or if it is unable todetermine whether the local copy is more recent than the master copy, extra command line switches must be set when it is executed..PPAfter the server data bases are set up, the contents ofsome maps may change.  In general, some ASCII source version of thedata base exists on the master. This version should be changed with a standard texteditor.  The update is incorporated into the YPmap and is propagated fromthe master to the slaves by running .PN /etc/yp/Makefile .All maps must have entries in .PN /etc/yp/Makefile .If a YP map is added, the .PN /etc/yp/Makefilemust be edited to support the new map.The makefile uses .MS makedbm 8ypto generate the YP map on the master, and.MS yppush 8ypto propagate the changed map to the slaves.  The .MS yppush 8ypcommand is a client of the map.I ypservers,which lists all of the YP servers.  .SH Files.PN /etc/passwd.br.PN /etc/group.br.PN /etc/hosts.br.PN /etc/networks.br.PN /etc/services.br.PN /etc/protocols.br.PN /etc/netgroup.SH See Alsomakedbm(8yp), rpcinfo(8nfs), ypmake(8yp), yppoll(8yp),yppush(8yp), ypserv(8yp), ypsetup(8yp), ypxfr(8yp)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -