有时候你想用一个端口,但是发现被其他服务占用了,所以必须关闭该端口,然后启动你想要的服务,令后者使用该端口。
出现了几次这个问题,记录一下好了,要不每次都要查(关键还是懒得记这些命令):
C:\Users\mmc> tasklist|findstr "80"
wininit.exe 580 Services 0 5,296 K
svchost.exe 708 Services 0 22,880 K
svchost.exe 1180 Services 0 12,632 K
armsvc.exe 2116 Services 0 5,380 K
wlg_contact.exe 1860 Console 2 12,980 K
MpCmdRun.exe 5804 Services 0 9,532 K
chrome.exe 3080 Console 2 93,504 K
SnippingTool.exe 6912 Console 2 51,800 K
conhost.exe 6180 Console 2 9,120 K
C:\Users\mmc> taskkill /f /t /im chrome.exe
本文记录了解决端口冲突的方法,通过查看任务列表并结束占用端口的服务,从而为所需服务分配端口,避免了重复查找命令的麻烦。
4526

被折叠的 条评论
为什么被折叠?



