Home  >  Article  >  Operation and Maintenance  >  How to uninstall apache service on ubuntu

How to uninstall apache service on ubuntu

青灯夜游
青灯夜游Original
2019-06-17 15:54:315537browse

How to uninstall apache service on ubuntu

卸载删除apache的步骤:

1、删除apache

sudo apt-get --purge remove apache-common
sudo apt-get --purge remove apache

2、找到没有删除掉的配置文件,一并删除

sudo find /etc -name "*apache*" |xargs rm -rf 
sudo rm -rf /var/www
sudo rm -rf /etc/libapache2-mod-jk
sudo rm -rf /etc/init.d/apache2
sudo rm -rf /etc/apache2

3、删除关联

dpkg -l |grep apache2|awk '{print $2}'|xargs dpkg -P

4、删除svn

sudo apt-get remove subversion
sudo apt-get remove libapache2-svn

5、最后用 dpkg -l | grep apache 和 dpkg -l | grep apache2检查,如无返回即干净卸载

The above is the detailed content of How to uninstall apache service on ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What does rm -rf * mean?Next article:What does rm -rf * mean?