1. Delete the Apache server under Windows system
There are two methods:
1. Run cmd, enter the directory where the apache program is located, and use the following uninstall command
httpd –k uninstall
2. You can also enter the control panel, management tools, services, and check the services of the apache program. What is the name? For example, apache
cmd runs the following command:
net stop apache sc delete apache
2. Delete the Apache service under Linux system
Uninstall command apache
sudo apt-get remove apache
Uninstall association
sudo apt-get autoremove
Manually delete configuration
sudo find /usr -name “*apache*” -exec rm -rf {} ; sudo find /etc -name “*apache*” -exec rm -rf {} ; sudo find /var -name “*apache*” -exec rm -rf {} ;
For more technical articles related to Apache, please Visit the Apache Tutorial column to learn!
The above is the detailed content of How to uninstall apache. For more information, please follow other related articles on the PHP Chinese website!