In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article Xiaobian for you to introduce in detail "what is the method of caching nscd in Linux system", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "what is the method of caching nscd in Linux system" can help you solve your doubts.
The main function of nscd is to speed up the parsing of DNS. It is a local caching service. It is recommended to enable it in private networks where APIs are called frequently.
When nscd's hosts caching service is enabled, each internal interface request will not initiate a dns resolution request, but will directly hit the nscd cache hash table to obtain the corresponding server ip address, which can reduce the response time of the interface when a large number of internal interface requests are made.
The nscd cleanup cache command is as follows:
[root@localhost ~] # nscd-I hosts if nscd is not installed, it needs to be installed manually
\ 1. Install nscd
[root@localhost] # yum-y install nscd\ 2. View status and start commands
[root@localhost ~] # systemctl status nscd # View status systemctl start nscd [root@localhost www.linuxidc.com] # systemctl start nscd # start nscd\ 3. After starting the nscd service, clear the cache
[root@localhost ~] # nscd-I hosts in many cases, after enabling nscd, you will find that the hit rate has been 0. The reason is that many linux services use the direct access mode to read the cache, and the direct read mode performs better, but it cannot be counted because it does not go through the daemon.
After reading this, the article "what is the method of caching nscd in Linux system" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.