Home  >  Article  >  Operation and Maintenance  >  How to uninstall apache server

How to uninstall apache server

藏色散人
藏色散人Original
2019-08-06 13:28:2012736browse

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!

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