Home > Article > Operation and Maintenance > How to uninstall apache server
How to uninstall the apache server
1. There are two ways to delete the Apache server under Windows system:
1. Run cmd and enter the directory where the apache program is located.
Enter the following uninstall command
httpd –k uninstall
2. You can also enter the control panel, management tools, and services. Look at the service name of the apache program. For example, apache
cmd runs the following command:
net stop apache sc delete apache
2. How to delete the Apache service under the 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 Apache related knowledge, please visit the Apache usage tutorial column !
The above is the detailed content of How to uninstall apache server. For more information, please follow other related articles on the PHP Chinese website!