控制本地名字服务的缓存时间
来源:互联网 发布:网络之父的名称 编辑:程序博客网 时间:2024/04/30 06:38
- /usr/sbin/nscd - name service cache daemon
以及nscd.conf
一个例子
#
# /etc/nscd.conf
#
# An example Name Service Cache config file. This file is needed by nscd.
#
# Legal entries are:
#
# logfile <file>
# debug-level <level>
# threads <initial #threads to use>
# max-threads <maximum #threads to use>
# server-user <user to run server as instead of root>
# server-user is ignored if nscd is started with -S parameters
# stat-user <user who is allowed to request statistics>
# reload-count unlimited|<number>
# paranoia <yes|no>
# restart-interval <time in seconds>
#
# enable-cache <service> <yes|no>
# positive-time-to-live <service> <time in seconds>
# negative-time-to-live <service> <time in seconds>
# suggested-size <service> <prime number>
# check-files <service> <yes|no>
# persistent <service> <yes|no>
# shared <service> <yes|no>
#
# Currently supported cache names (services): passwd, group, hosts
#
# logfile /var/log/nscd.log
# threads 6
# max-threads 128
# server-user nobody
# stat-user somebody
debug-level 0
# reload-count 5
paranoia no
# restart-interval 3600
enable-cache passwd yes
positive-time-to-live passwd 600
negative-time-to-live passwd 20
suggested-size passwd 211
check-files passwd yes
persistent passwd yes
shared passwd yes
enable-cache group yes
positive-time-to-live group 3600
negative-time-to-live group 60
suggested-size group 211
check-files group yes
persistent group yes
shared group yes
# enable-cache hosts yes
enable-cache hosts no
positive-time-to-live hosts 3600
negative-time-to-live hosts 20
suggested-size hosts 211
check-files hosts yes
persistent hosts yes
shared hosts yes
========================================================================
- 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-nameSpecifies name of the file to which debug info should be written.
debug-level valueSets the desired debug level.
threads numberThis is the number of threads that are started to wait for requests. At least five threads will always be created.
server-user userIf 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 valueSets 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 valueSets 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 valueThis 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)
- AUTHOR
- nscd was written by Thorsten Kukuk and Ulrich Drepper.
- 控制本地名字服务的缓存时间
- 控制缓存的时间
- 演示控制客户端浏览器的缓存时间
- 控制缓存时间
- response控制缓存时间
- squid缓存设置--控制页面的缓存时间
- html的angular获取本地时间和3秒后换另一个名字
- ATS缓存时间控制插件
- 通过过滤器控制静态资源的缓存时间
- 从时间服务同步本地时间
- 本地缓存的使用
- 本地缓存的机制
- 名字控制
- Response对象实现控制缓存时间
- 使用REST API 地图服务无法访问非本地的缓存切片
- webservice 控制客户端代理类的名字
- [转]Orbacus名字服务的使用
- xcache本地缓存的分析
- CVS服务器设置指南
- c#多线程编程笔记2
- c#多线程编程笔记3
- 鼠标经过图像,内容变换
- 什么是ARP
- 控制本地名字服务的缓存时间
- 常用JavaScript大全
- 使用VBA访问ACCESS,Excel文件的方法
- PC AT keyboard
- WIN2003+ROSE 2003的"MEM_BAD_POINTER"错误的解决办法
- asp.net2.0 多文件压缩上传问题
- 博客内容多为本人在学习搜索引擎技术时收集的有帮助的文章。
- mysql中的替换语句
- Programming Python