mod_pagespeed 在debian系统下的安装卸载

按照系统选择安装版本:



#64位
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
#32位
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb


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




删除安装包




rm mod-pagespeed-*.deb


重启service apache2 restart 就好了。


卸载

# disable the working symlinked stuffs
sudo a2dismod pagespeed
sudo service apache2 restart
# turn off
nano /etc/apache2/mods-available/pagespeed.conf
# edit to off from on and save
sudo service apache2 restart
# will work for the most
sudo apt-get autoremove mod-pagespeed-stable
# will work for some
sudo apt-get autoremove mod-pagespeed-beta
# must restart Apache
service apache2 restart