.\" -*- nroff -*- .\" Copyright (c) 1999, 2000 SuSE GambH Nuernberg, Germany .\" Author: Thorsten Kukuk .\" .\" This program is free software; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of the .\" License, or (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU .\" General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this program; see the file COPYING. If not, .\" write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, .\" Boston, MA 02111-1307, USA. .\" .TH nscd.conf 5 1999-10 "GNU C Library" .SH NAME /etc/nscd.conf - 域名服務緩存守護進程配置文件 .SH "描述 DESCRIPTION" 該文件 .B /etc/nscd.conf 在啓動 .BR nscd (8) 時讀入。每一行或者指定一個屬性和值,或者指定一個屬性、服務和一個值。域之間通過 空格或者TAB分開。`#'表示註釋的開始;在該字符之後到行的末尾將不會被nscd解釋。 有效服務爲passwd,group或者hosts。 .B logfile .I debug-file-name .RS 指定調試信息寫入的文件名。 .RE .B debug-level .I value .RS 設置希望的調試級別。 .RE .B threads .I number .RS 這是啓動的等待請求的線程數。最少將創建5個線程。 .RE .B server-user .I user .RS 如果設置了該選項,nscd將作爲該用戶運行,而不是作爲root。如果每個用戶都使用一個 單獨的緩存(-S參數),將忽略該選項。 .RE .B enable-cache .I service .I .RS 啓用或禁用制定的 .I 服務 緩存。 .RE .B positive-time-to-live .I service .I value .RS 設置 .IR service 在指定緩存中正的項目(成功的請求)的TTL(存活時間)。 .I Value 以秒爲單位。較大的值將增加緩存命中率從而減低平均響應時間,但是將增加緩存的一致 性問題。 .RE .B negative-time-to-live .I service .I value .RS 設置 .IR service 在指定緩存中負的項目(失敗的請求)的TTL(存活時間)。 .I Value 以秒爲單位。如果存在由不在系統數據庫中的uid(用戶ID)(例如在以root身份解包linux 內核源代碼時)所擁有的文件將明顯改善性能;應該維持較小的值以降低緩存一致性問題。 .RE .B suggested-size .I service .I value .RS 這是內部散列表的大小, .I value 應該保持一個素數以達到優化效果。 .RE .B check-files .I service .I .RS 啓用或禁用檢查屬於指定 .I 服務 的文件的改變。這些文件是 .IR /etc/passwd, .IR /etc/group, 以及 .IR /etc/hosts。 .RE .SH "參見" .BR nscd (8) .SH "作者" .B nscd 由Thorsten Kukuk和Ulrich Drepper完成。 .SH "[中文版維護人]" .B 梁萌 .SH "[中文版最新更新]" .BR 2002/5/18 .SH "[中國linux論壇man手冊頁翻譯計劃]" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR