-
When many children still feel that their website speed is not fast enough and are looking for various acceleration methods, Google has released another module to accelerate the website, the apache acceleration module mod_pagespeed.
As early as June last year, Google provided developers with a tool called Page Speed that could give relevant website optimization suggestions, but the follow-up implementation of the suggestions was also very troublesome. The considerate Google provides a fool-proof solution for lazy MJJs: mod_pagespeed.
It is said that this module can effectively increase web page loading speed by 50%. Google's acceleration module simply solves many complex problems:
•If your website uses apache to build the server, it can be applied without processing the website CMS system;
•The acceleration module can automatically optimize the html bytes transmitted over the network and compress and optimize images and CSS for transmission;
•Smart caching is a highlight, it can automatically cache intelligently and speed up downloads.
At present, this set of optimization modules has been applied to GoDaddy servers with 8.5 million customers, and the response has been good. According to some previous practices, mod_pagespeed can be used to optimize multiple aspects of Web performance, including caching, the connection between the client and the server, load size, etc., and can reduce page loading time by up to 50%.
1.Supported operating systems and apache versions:
CentOS/Fedora (32-bit and 64-bit)
Debian/Ubuntu (32-bit and 64-bit)
Apache 2.2
mod_pagespeed 32-bit .deb (Debian/Ubuntu) Download
mod_pagespeed 64-bit .deb (Debian/Ubuntu) Download
mod_pagespeed 32-bit .rpm (CentOS/Fedora) Download
mod_pagespeed 64-bit .rpm (CentOS/Fedora) Download
2.Installation method
a. On Debian/Ubuntu system, please run the following command:
Download 32-bit
wegt https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb
Download 64-bit
wegt https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_amd64.deb
Install mod_pagespeed:
sudo dpkg-i mod-pagespeed*.deb
apt-get-f install
Delete downloaded files mod_pagespee
rm mod-pagespeed*.deb
Modify the domain name and restart apache
sudo /etc/init.d/apache2 restart
Note: Note that mod-pagespeed*.deb is the file name of the corresponding module version.
Set pagespeed.conf:
nano /etc/apache2/mods-available/pagespeed.conf
Modify the domain name and restart apache
sudo /etc/init.d/apache2 restart
Refresh the website a few times to make sure the installation is successful
b. Running on CentOS/Fedora system:
Download 32-bit
wegt https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm
Download 64-bit
wegt https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_x86_64.rpm
Install mod_pagespeed:
yum localinstall mod_pagespeed_*.rpm
or
rpm -i mod_pagespeed_*.rpm
Delete downloaded files mod_pagespeed
rm mod-pagespeed*.rpm
Note: Note that mod-pagespeed*.rpm is the file name of the corresponding module version.
Set pagespeed.conf:
vi /etc/apache2/mods-available/pagespeed.conf
Modify the domain name and restart apache
sudo /etc/init.d/apache2 restart
Article source: http://vzone.me/website/google-apache-mod_pagespeed-module-installation.html