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 @   xuchaoxin1375  阅读(13)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示