In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to analyze the performance of the Nginx server. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
The Nginx server has been serving us silently, but many of us don't know much about it. In fact, Nginx server is a very magical thing.
Memcached-based caching
The Nginx server supports memcached, but the function is not particularly strong, and the performance is still very good.
Location / mem/ {
If ($uri ~ "^ / mem/ ([0-9A Zamurz] *) $")
{
Set $memcached_key "$1"
Memcached_pass 192.168.1.2:11211
}
Expires 70
}
This configuration will specify that you will go to the abc key of memcached to fetch data. At present, the Nginx server does not have any mechanism to write memcached, so writing data to memcached has to be done with a dynamic language in the background, which can be directed to the back end to write data.
Based on third-party plug-in ncache
Ncache is a good project developed by Sina Brothers. It uses Nginx and memcached to implement some functions similar to squid caching. I have no experience using this plug-in.
Newly developed proxy_cache function of Nginx server
From the Nginx-0.7.44 version, Nginx supports a more formal cache function similar to squid, which is still in the development stage, and the support is quite limited. This cache is to encode the link with md5 and save it, so it can support any link. At the same time, it also supports non-200status such as 404amp 301amp 302.
After reading the above, do you have any further understanding of how to analyze the performance of the Nginx server? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.