Blogger Information
Blog 19
fans 0
comment 1
visits 18116
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Ubuntu 16.04 下卸载 lnmp/lamp 方法
王石磊的博客
Original
828 people have browsed it

Ubuntu 16.04 下卸载 lnmp/lamp 方法

1.卸载 apache2

sudo apt-get --purge remove apache2*
sudo apt-get autoremove apache2
(--purge 是完全删除并且不保留配置文件)
(重新安装 sudo apt-get install apache2)

2.卸载 nginx

sudo apt-get remove nginx-*
sudo apt-get purge nginx-*

3.卸载 php7.0-fpm 或者 php5

sudo apt-get --purge remove php7.0*
(或者 sudo apt-get --purge remove php5* libapache2-mod-php5)
sudo apt-get autoremove php7.0*(php5)

4.卸载 mysql

sudo apt-get --purge remove mysql*
sudo apt-get autoremove mysql*## 最后清理残留文件:dpkg -l |grep ^rc|awk ’{print $2}’ |sudo xargs dpkg -P


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post