在windows下部署web應用(80端口),啓動時提示bind 80端口失敗
檢查端口占用:
netstat -ano | findstr 0.0.0.0:80
發現System進程 (pid=4) 佔用了端口
然而本機也沒有安裝iis,於是排除IIS服務的問題。
解決方式
管理員身份運行cmd
net stop http //停止系統http服務
sc config http start= disabled //禁用服務的自動啓動,此處注意等號後面的空格不可少
重新啓動應用,提示成功!