apt-get卸载Apache MySQL PHP

来自http://tunps.com/apt-get-uninstall-apache-mysql-php

1、卸载Apache2都几个命令

sudo apt-get --purge remove apache2
sudo apt-get --purge remove apache2.2-common

其中remove –purge is equivalent to the purge command. (见man apt-get)

或直接使用一条命令

sudo apt-get autoremove apache2

2、卸载Mysql

sudo apt-get purge mysql-server mysql-server-5.0

3、卸载Php5

sudo apt-get autoremove php5

4、批量删除组件及相关

sudo apt-get remove --purge apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5
sudo apt-get remove --purge libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off
sudo apt-get remove --purge libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common
sudo apt-get remove --purge mysql-server mysql-server-5.0 php5-common php5-mysql

命令就是这些,具体含义可上网查询。

About tunpishuang

just 4 fun·····
This entry was posted in 未分类 and tagged , , , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>