---
title: "Port 80被Microsoft HTTPAPI/2.0 服务占用"
author: "dbaspider"
date: "2015-07-20T18:12:44Z"
tags: []
categories: ["操作系统"]
slug: "port-80-microsoft-httpapi-2-0"
draft: false
lastmod: "2015-07-20T18:14:20Z"
id: 2228844
url: "https://dbaspider.iteye.com/blog/2228844"
---

**机器安装了个vs 2008，没有启用ISS服务，但80端口竟然被占用了。用工具查看，这个占用80端口的进程是system 4 号进程，根本不知道是哪个服务占的。**

抓个包看看：

Send: Return Code: 0x00000000
GET / HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: zh-CN,en-US;q=0.5
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)
Accept-Encoding: gzip, deflate
Host: 127.0.0.1
DNT: 1
Connection: Keep-Alive



Receive: Return Code: 0x00000000
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=us-ascii
<span style="color:red">Server: Microsoft-HTTPAPI/2.0</span>
Date: Mon, 20 Jul 2015 05:48:13 GMT
Connection: close
Content-Length: 315

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Not Found</h2>
<hr>HTTP Error 404. The requested resource is not found.

</BODY></HTML>


<span style="color:red">**这里确实可以看到，是微软自己的进程占的。
Server: Microsoft-HTTPAPI**</span>

网上百度找了一番，有不少人是安装了SQL Server后下面服务占用的：
Microsoft SQL Server报告服务（SSRS）
但本机器到服务里面看了下，没有这个服务。

google不能用，只好bing了。又发现一个：

Web部署代理服务（MsDepSvc） 也会占用。

果然是它。 :shock: 

http://www.ferolen.com/blog/microsoft-httpapi2-0-use-port-80-cannot-start-wamp-apache/

http://blog.163.com/chudaozhe@126/blog/static/115732343201241893929371/