In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 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.
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.