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!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了