Optimization of the Apache apache web page compression

gzip describes
configuring Apache web compression, using gzip compression algorithm to the transmission to the client browser after compression of web content.
1. Role:

  • Reduce the number of bytes transmitted over the network, speed up page loading speed
  • Save traffic, improve the user's browsing experience
  • gzip and search engine crawlers have a better shutdown
    2.Apache page-compression module include:
  • mod_gzip module
  • mod_deflate module
    3.mod_gzip module and module mod_deflate
  • Both use gzip compression algorithm, similar to how it works
  • mod_deflate compressed slightly faster, but slightly higher compression ratio mod_gzip
  • mod_gzip occupation of server CPU higher
  • High-traffic server, use mod_deflate may load faster than mod_gzip
    enable web compression step
    1. Check whether the installation mod_deflate module
    2. modify the configuration file, compression is enabled
    3. capture test
    test
    a manually compile and install Apache
    detailed installation Please review process: https://blog.51cto.com/14557905/2458177
    mount installation package
    Optimization of the Apache apache web page compression
    to extract the files to the / opt directory under the
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    installed compression module package
    Optimization of the Apache apache web page compression
    installation environment package
    Optimization of the Apache apache web page compression
    process make && make install is
    Optimization of the Apache apache web page compression
    to find and open the deflate compression module module check other required modules
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    have to confirm the oN state
    at the end of the file with a piece of content
    Optimization of the Apache apache web page compression
    to verify whether the correct syntax
    Optimization of the Apache apache web page compression
    to modify the domain name and listen address
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    to open service, turn off the firewall
    Optimization of the Apache apache web page compression
    authentication module
    Optimization of the Apache apache web page compression
    module has been enabled!
    The next step is to test the client
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    on the client machine and then view the
    Optimization of the Apache apache web page compression
    Optimization of the Apache apache web page compression
    compression module function enabled successfully!

Guess you like

Origin blog.51cto.com/14557905/2459413