how to uninstall apache2.4(residual) completely on windows?(彻底删除残留的apache服务)

if you delete the folder manually

the apache2.x service may still in your pc,and if you visit localhost with your browser,you may still can see the page(or some similar)
请添加图片描述

then,how to solve the problem?

I have try many method to try to solve this problem.
for example :
run services.msc to stop the apache2.4,and use the sc delete apache2.4 to delete the service on my windows10 pc.(of course,run cmd as administrator)
however, when I try to make it ,but it seems does not works.(though I try to restart my pc,and I fond the service apache2.4 has been removed from the service list,but…
when I try to visit the local host anagin ,I found the visit still return me the result generate by apache!
God!

finally

I download the apache for windows again, and unzip it in the same with the old path,
then I run the cmd as administrator,and cd /D C:/apache24/bin
Firstly, I run httpd -k install to reinstall the service
so as to run the next command :httpd -k uninstall

c:\Apache24\bin>httpd -k install
Installing the ‘Apache2.4’ service
The ‘Apache2.4’ service is successfully installed.
Testing httpd.conf…

c:\Apache24\bin>httpd -k uninstall
Removing the ‘Apache2.4’ service
The ‘Apache2.4’ service has been removed successfully.

result:

when I try to visit the localhost it no more appear the apache page!

posted @ 2024-09-30 23:08  xuchaoxin1375  阅读(38)  评论(0)    收藏  举报  来源