How to uninstall apache on ubuntu

藏色散人
Release: 2020-10-21 10:37:46
Original
7450 people have browsed it

How to uninstall apache on ubuntu

How to uninstall apache on ubuntu?

Installation and uninstallation of apache2 in ubuntu

1: Install apache2

Installation command: sudo apt-get install apache2

Start/stop/restart apache2: service apache2 start/stop/restart

2: Uninstall apache2

(1) The apache2.conf configuration file cannot be found after uninstalling and reinstalling. Test it and use the following method to uninstall it.

    $ sudo apt-get --purge remove apache2
    $ sudo apt-get --purge remove apache2.2-common
    $ sudo apt-get autoremove
Copy after login

(2) (Key step) Find the configuration files that have not been deleted and delete them together

    $ sudo find /etc -name "*apache*" -exec rm -rf {} \;
    $ sudo rm -rf /var/www
Copy after login

Recommended learning: Apache Tutorial

The above is the detailed content of How to uninstall apache on ubuntu. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!