How to uninstall apache2

藏色散人
Release: 2019-08-09 10:57:32
Original
4592 people have browsed it

How to uninstall apache2

如何卸载apache2?

Ubuntu卸载删除apache2的方法:

sudo apt-get --purge remove apache-common
sudo apt-get --purge remove apache
Copy after login

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

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
Copy after login

删除关联,

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

删除svn

sudo apt-get remove subversion
sudo apt-get remove libapache2-svn
Copy after login

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

更多Apache相关知识,请访问Apache使用教程栏目!

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template