nscd.conf 中文man頁面
NAME
/etc/nscd.conf - 域名服務(wù)緩存守護進程配置文件
描述 DESCRIPTION
該文件 /etc/nscd.conf 在啟動 nscd(8) 時讀入。每一行或者指定一個屬性和值,或者指定一個屬性、服務(wù)和一個值。域之間通過空格或者TAB分開。‘#’表示注釋的開始;在該字符之后到行的末尾將不會被nscd解釋。
有效服務(wù)為passwd,group或者hosts。
logfile debug-file-name
- 指定調(diào)試信息寫入的文件名。
debug-level value
- 設(shè)置希望的調(diào)試級別。
threads number
- 這是啟動的等待請求的線程數(shù)。最少將創(chuàng)建5個線程。
server-user user
- 如果設(shè)置了該選項,nscd將作為該用戶運行,而不是作為root。如果每個用戶都使用一個單獨的緩存(-S參數(shù)),將忽略該選項。
enable-cache service <yes|no>
- 啟用或禁用制定的 服務(wù) 緩存。
positive-time-to-live service value
- 設(shè)置 service 在指定緩存中正的項目(成功的請求)的TTL(存活時間)。 Value 以秒為單位。較大的值將增加緩存命中率從而減低平均響應時間,但是將增加緩存的一致性問題。
negative-time-to-live service value
- 設(shè)置 service 在指定緩存中負的項目(失敗的請求)的TTL(存活時間)。 Value 以秒為單位。如果存在由不在系統(tǒng)數(shù)據(jù)庫中的uid(用戶ID)(例如在以root身份解包linux 內(nèi)核源代碼時)所擁有的文件將明顯改善性能;應該維持較小的值以降低緩存一致性問題。
suggested-size service value
- 這是內(nèi)部散列表的大小, value 應該保持一個素數(shù)以達到優(yōu)化效果。
check-files service <yes|no>
- 啟用或禁用檢查屬于指定 服務(wù) 的文件的改變。這些文件是 /etc/passwd, /etc/group, 以及 /etc/hosts。
參見
nscd(8)
#p#
NAME
/etc/nscd.conf - name service cache daemon configuration file
DESCRIPTION
The file /etc/nscd.conf is read from nscd(8) at startup. Each line specifies either an attribute and a value, or an attribute, service, and a value. Fields are separated either by SPACE or TAB characters. A `#' (number sign) indicates the beginning of a comment; following characters, up to the end of the line, are not interpreted by nscd.
Valid services are passwd, group, or hosts.
logfile debug-file-name
- Specifies name of the file to which debug info should be written.
debug-level value
- Sets the desired debug level.
threads number
- This is the number of threads that are started to wait for requests. At least five threads will always be created.
server-user user
- If this option is set, nscd will run as this user and not as root. If a separate cache for every user is used (-S parameter), this option is ignored.
enable-cache service <yes|no>
- Enables or disables the specified service cache.
positive-time-to-live service value
- Sets the TTL (time-to-live) for positive entries (successful queries) in the specified cache for service. Value is in seconds. Larger values increase cache hit rates and reduce mean response times, but increase problems with cache coherence.
negative-time-to-live service value
- Sets the TTL (time-to-live) for negative entries (unsuccessful queries) in the specified cache for service. Value is in seconds. Can result in significant performance improvements if there are several files owned by uids (user IDs) not in system databases (for example untarring the linux kernel sources as root); should be kept small to reduce cache coherency problems.
suggested-size service value
- This is the internal hash table size, value should remain a prime number for optimum efficiency.
check-files service <yes|no>
- Enables or disables checking the file belonging to the specified service for changes. The files are /etc/passwd, /etc/group, and /etc/hosts.
SEE ALSO
nscd(8)