In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to enable Brotli algorithm compression in Nginx, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Installation module
To enable the ngx_brotli module, you need to add the appropriate module when compiling the Nginx:
# get sourcegit clone https://github.com/google/ngx_brotli.gitcd ngx_brotligit submodule update-- initcd.. # configure./configure...-- add-module=../ngx_brotli
Configuration file
After installing the ngx_brotli module, you can enable it in the configuration file:
# configuration section: http, server, location# enable ngx_brotli compression brotli on;# to specify the minimum length of compressed data, which will be compressed only if it is greater than or equal to the minimum length. Here you specify the number and size of 20-byte brotli_min_length 20th # Brotli request buffers and the window value used by brotli_buffers 16 10kbot # Brotli. The default value is 512kbrotli_window 512kbot # compression levels can be 0 to 11, and the default value is 6. A high level of compression is not very good for performance improvement, as it requires more CPU time brotli_comp_level 6: 10 # specify the type of reply brotli_types text/html text/xml text/plain application/json text/css image/svg application/font-woff application/vnd.ms-fontobject application/vnd.apple.mpegurl application/javascript image/x-icon image/jpeg image/gif image/png that allows compression # whether to find preprocessed compressed files ending in .br. Optional values are on, off, alwaysbrotli_static always;. The above is how to enable Brotli algorithm compression in Nginx. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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.