星期日, 6月 19, 2011

Ubuntu 安裝 mod_pagespeed for Apache2

Page Speed Downloads

This download page presents several different options.
  • If you are a web developer and would like to evaluate the performance of web pages in order to improve them, please download the Page Speed extension for Google Chrome or Firefox.
  • If you'd like to try the Apache 2.2 module, please download mod_pagespeed.
  • Performance-minded developers and evangelists that would like to integrate Page Speed in their workflow and their tools should download the Page Speed SDK.

Page Speed extension for Google ChromeNew!

Supported platforms

  • Mac OS X (x86 only)
  • Linux (32-bit and 64-bit)
  • Windows (XP and up)

Page Speed extension for Firefox

Install while using Firefox

Supported platforms

  • Mac OS X (x86 only)
  • Linux (32-bit and 64-bit)
  • Windows (XP and up)

Prerequisites

Beta
  • Users interested in getting the latest updates and new features can download the Page Speed 1.11 Beta.
-->

mod_pagespeed for Apache

Supported platforms

  • CentOS/Fedora (32-bit and 64-bit)
  • Debian/Ubuntu (32-bit and 64-bit)
  • Apache 2.2

To install the packages, on Debian/Ubuntu, please run (as root) the following command:

dpkg -i mod-pagespeed-*.deb apt-get -f install

For CentOS/Fedora, please execute (also as root):

yum install at  (if you do not already have 'at' installed) rpm -U mod-pagespeed-*.rpm

Installing mod_pagespeed will add the Google repository so your system will automatically keep mod_pagespeed up to date. If you don't want Google's repository, do sudo touch /etc/default/mod-pagespeed before installing the package.

You can also download a number of system tests. These are the same tests available on ModPageSpeed.com.

Please sign up and let us know your early feedback on this beta release.

Page Speed SDK for Developers

The Page Speed SDK is a reusable C++ library that can be used in a variety of different environments, including browser plugins, bulk data processing pipelines, command-line tools, etc.

See Embedding the Page Speed SDK for more information about integrating the Page Speed SDK.

The applications in the gallery use the Page Speed SDK to provide Page Speed scores and suggestions.

1. 下載 mod-pagespeed-*.deb
2. sudo dpkg -i mod-pagespeed-*.deb
3. sudo apt-get -f install
4. sudo a2enmod pagespeed
5. sudo /etc/init.d/apache2 restart

同時刊載於我的波斯特斯