First, the acquisition module
The code is as follows |
Copy Code |
wget http://soft.kwx.gd/module/mod-pagespeed-beta_current_i386.rpm #32位 wget http://soft.kwx.gd/module/mod-pagespeed-beta_current_x86_64.rpm #64位 |
Second, the implementation of installation
The code is as follows |
Copy Code |
Rpm-i--nodeps mod-pagespeed-beta_current_*.rpm |
SSH executes the above command by installing the module, prompting "package mod-pagespeed-beta-0.10.22.4-1633.i386 is already installed" to indicate that the installation was successful.
If prompted the following figure error, please refer to: "RPM installation or upgrade when the signature error resolution method"
Iii. modification of relevant documents
1. Edit httpd-includes.conf
The code is as follows |
Copy Code |
Vim/etc/httpd/conf/extra/httpd-includes.conf |
Edit httpd-includes.conf and add the following to call the Google Pagespeed module
The code is as follows |
Copy Code |
#Google Pagespeed Module Include/etc/httpd/conf.d/pagespeed.conf
|
2. Annotate the Httpd-deflate module with Apache
The code is as follows |
Copy Code |
Vim/etc/httpd/conf/httpd.conf |
Locate "Include conf/extra/httpd-deflate.conf", preceded by a "#" annotation, as shown below.
Four, restart Apache and check the status of the module
1, restart Apache
The code is as follows |
Copy Code |
Service httpd Restart |
2, check the module is effective
The code is as follows |
Copy Code |
Apachectl-t-D Dump_modules | grep pagespeed |
SSH executes the above command, and the following figure indicates that the module was successfully loaded.