# 互联网信息服务

**互联网信息服务**（Internet Information Services，IIS）是微软（Microsoft）出品的一款 Web 服务器软件，运行于 Windows 之上，通过 HTTP、HTTPS、FTP 及其他协议承载网站、服务与应用程序。它是 Windows 操作系统的一个组件，遵循 Windows 的生命周期，而不单独设有支持时间表。<sup>[1](https://learn.microsoft.com/en-us/lifecycle/products/internet-information-services-iis)</sup> 微软将其描述为一个统一的 Web 平台，把 IIS、ASP.NET、FTP 服务、PHP 与 Windows Communication Foundation（WCF）集成在一起。<sup>[2](https://learn.microsoft.com/en-us/windows-server/networking/core-network-guide/cncg/server-certs/install-the-web-server-web1)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次发布 | Microsoft Internet Information Server 1.0，1996 年 2 月 12 日起免费提供，微软称之为第一个与 Windows NT Server 网络操作系统集成的 Web 服务器<sup>[3](https://news.microsoft.com/source/1996/02/12/microsoft-ships-internet-information-server-free-product-outperforms-unix/)</sup> |
| 当前版本 | IIS 10.0，随 Windows 10 与 Windows Server 2016 发行，其后的 Windows 版本中又有功能更新<sup>[4](https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/new-features-introduced-in-iis-10)</sup> |
| HTTP 侦听器 | HTTP.sys，IIS 6.0 引入的内核模式设备驱动程序，负责侦听 HTTP 与 HTTPS 请求，并提供内核模式缓存与请求排队<sup>[5](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/introduction-to-iis-architecture)</sup> |
| 进程管理 | 自 IIS 7 起，由 Windows 进程激活服务（WAS）管理应用程序池配置与工作进程，使 HTTP 站点与非 HTTP 站点共用同一套进程模型<sup>[5](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/introduction-to-iis-architecture)</sup> |
| 应用程序平台 | 活动服务器页面（ASP）随 1996 年 12 月的 IIS 3.0 面世；如今 ASP.NET Core 应用或在 IIS 工作进程内以进程内方式承载，或借助 Kestrel 服务器以进程外方式置于 IIS 之后<sup>[6](https://news.microsoft.com/source/1996/12/10/microsoft-ships-internet-information-server-3-0/)</sup><sup> • </sup><sup>[7](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-10.0)</sup> |
| 市场份额 | 据 W3Techs 2026 年 10 月的数据，在 Web 服务器已知的全部网站中，Microsoft-IIS 约占 3.0%，Apache 为 21.7%<sup>[8](https://w3techs.com/technologies/comparison/ws-apache%2Cws-microsoftiis)</sup> |
| 支持期限 | Windows Server 2019 上的 IIS 10 计划于 2029 年 1 月 10 日终止支持；IIS 是 Windows 的组件，遵循 Windows 生命周期<sup>[1](https://learn.microsoft.com/en-us/lifecycle/products/internet-information-services-iis)</sup> |

## 起源与早期版本

微软于 1996 年 2 月进入 Web 服务器市场，当时 Internet Information Server 1.0 已可作为免费下载获得，并计划作为 [Windows NT](https://www.edgepedia.org/zh/windows-nt) Server 网络增值包（Network Value Pack）的标准组件随附发行。发布公告称，国家软件测试实验室（National Software Testing Laboratories）的测试显示，IIS 的性能至少超出其他基于 Windows NT 的 Web 服务器 250%；Webstone 1.1 的测试则显示，其速度是价格更高的 UNIX Web 服务器的四倍。图形化安装程序在多数情况下能在 10 分钟内安装并运行全部 Internet 服务，微软以此与安装可能耗时数小时的 UNIX 服务器作对比。<sup>[3](https://news.microsoft.com/source/1996/02/12/microsoft-ships-internet-information-server-free-product-outperforms-unix/)</sup>

首个版本还引入了 Internet 服务器 API（ISAPI），这是对 Win32 API 的扩展，微软称其运行速度最高可达基于 CGI 的应用程序的五倍，同时仍支持 CGI 与 Perl。发布之时，已有 50 多家第三方开发商宣布推出基于 ISAPI 的应用程序。<sup>[3](https://news.microsoft.com/source/1996/02/12/microsoft-ships-internet-information-server-free-product-outperforms-unix/)</sup>

**IIS 2.0 与 3.0。** IIS 2.0 作为 Windows NT Server 4.0 的一部分发行，后者于 1996 年 7 月 31 日交付制造。<sup>[9](https://www.tomshardware.com/software/windows/windows-nt-4-0-brought-the-win95-ui-to-servers-30-years-ago-today-milestone-unifying-modern-windows-os-hit-rtm-in-the-pentium-era)</sup> IIS 3.0 于 1996 年 12 月跟进，标志着从提供文档向提供应用程序的转变。它引入了[活动服务器页面](https://www.edgepedia.org/zh/active-server-pages)，让开发者可以在服务器上把 HTML、脚本与组件结合起来，同时还带来用于流式多媒体的 NetShow、用于全文检索的 Index Server 1.1、FrontPage 97 服务器扩展、SSL 3.0 以及 Java 虚拟机。到该版本发布时，微软援引 Netcraft 的调查数据，称 IIS 已超越网景（Netscape）的产品，成为互联网上使用最广的商业 Web 服务器。<sup>[6](https://news.microsoft.com/source/1996/12/10/microsoft-ships-internet-information-server-3-0/)</sup> IIS 4.0 后来作为 Windows NT Server 4.0 选件包（Option Pack）的一部分发行，微软的资源工具包将其描述为一套用于构建 Web 计算平台的服务器技术。<sup>[10](https://www.bitsavers.org/pdf/microsoft/resource_kits/Internet_Information_Server_Resource_Kit_1998.pdf)</sup>

## 体系结构

IIS 7 及以后的版本采用由协议侦听器与 Windows 服务构成的请求处理体系结构。HTTP 侦听器 HTTP.sys 是 Windows 网络子系统中的内核模式设备驱动程序：它从网络接收 HTTP 请求，交给 IIS 处理，再把响应返回客户端。由于运行于内核模式，对已缓存响应的请求无需切换到用户模式即可得到服务，内核还会把请求排队，直到某个工作进程将其取走。HTTP.sys 于 IIS 6.0 中引入，取代了早期版本所使用的用户模式 Windows 套接字 API（Winsock）。<sup>[5](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/introduction-to-iis-architecture)</sup>

自 IIS 7 起，万维网发布服务（WWW 服务，亦称 W3SVC）的职责被拆分到两个服务中。WWW 服务仍是 HTTP.sys 的侦听器适配器，负责配置它，并在请求进入队列时通知 WAS，同时保留 HTTP 专用的性能计数器。新增的 Windows 进程激活服务（WAS）接管了应用程序池配置与工作进程的管理，从 ApplicationHost.config 文件中读取站点、应用程序与应用程序池的设置。这种分离使同一套配置与进程模型也能服务非 HTTP 协议；当服务器只承载非 HTTP 服务（例如通过 net.tcp 的 WCF 终结点）时，WAS 可以脱离 WWW 服务单独运行。<sup>[5](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/introduction-to-iis-architecture)</sup>

服务器引擎是模块化的：管理员通过增删模块来定制请求处理，集成管道则统一了 IIS 与 ASP.NET 之间的请求处理。<sup>[5](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/introduction-to-iis-architecture)</sup> IIS 的模块与处理程序是 .NET 组件，构成主要的扩展点；每个请求都要经过多个模块，最后由单一处理程序处理，而处理程序可以绑定到特定的 URL、文件扩展名或 HTTP 方法。<sup>[11](https://www.microsoft.com/en-us/security/blog/2022/07/26/malicious-iis-extensions-quietly-open-persistent-backdoors-into-servers/)</sup>

## 安全性

IIS 一直是反复被攻击的目标。2001 年 6 月，一家网络安全公司发现了 IIS 中的一个严重漏洞；微软在数日内发布了补丁，但许多管理员并未安装。7 月，红色代码（Code Red）蠕虫利用该漏洞，一周之内感染了 30 多万台计算机。两个月内，利用了多个已修补漏洞的 Nimda 蠕虫又感染了大量系统。美国国家标准与技术研究院（NIST）对这些蠕虫大规模传播事件的报告得出结论：如果系统及时打上补丁，这两种蠕虫都不会造成多大影响。<sup>[12](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-40.pdf)</sup> 更早的 2002 年 4 月，微软的累积补丁 MS02-018 修复了 IIS 4.0、5.0 与 5.1 中新发现的十个漏洞，包括分块编码处理、HTTP 头处理以及 ASP 服务器端包含功能中的缓冲区溢出，其中最严重者可让攻击者在服务器上运行任意代码。<sup>[13](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2002/ms02-018)</sup>

**内置防御。** IIS 7.0 引入的请求筛选（Request Filtering）取代了 IIS 6.0 时代所用 UrlScan 加载项的大部分功能。它可以拒绝 URL 序列、文件扩展名、隐藏段、超大请求以及不受欢迎的 HTTP 动词，并且自 IIS 7 起默认随附。请求被阻止时，IIS 返回 [HTTP 404](https://www.edgepedia.org/zh/http-404) 错误，并用唯一的子状态码标明原因，例如 404.6 表示动词被拒，404.7 表示文件扩展名被拒，管理员可据此分析日志中的攻击模式。IIS 7.5 增加了自定义筛选规则与查询字符串拒绝功能，IIS 10.0 则增加了抑制发往远程客户端的 HTTP 服务器头的功能。<sup>[14](https://learn.microsoft.com/en-us/iis/configuration/system.webServer/security/requestFiltering/)</sup> 支持 [Kerberos](https://www.edgepedia.org/zh/kerberos-protocol) 与 NTLM 的 Windows 身份验证，作为可选角色服务，供使用 [Active Directory](https://www.edgepedia.org/zh/active-directory) 或 Windows 账户的企业网络使用；密码在传输前会经过哈希处理。<sup>[15](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/windowsauthentication)</sup>

扩展模型本身也带来风险。微软的安全研究人员描述了这样一类攻击者：先利用托管应用程序中的漏洞，再安装恶意的 IIS 模块或处理程序作为持久后门；由于这些扩展与合法模块位于相同的目录、遵循相同的代码结构，比脚本型 WebShell 更难被发现。后门一旦注册，就能监视进出的请求、执行远程命令，或在用户身份验证时窃取凭据。<sup>[11](https://www.microsoft.com/en-us/security/blog/2022/07/26/malicious-iis-extensions-quietly-open-persistent-backdoors-into-servers/)</sup>

## 承载 ASP.NET Core

现代 [ASP.NET Core](https://www.edgepedia.org/zh/asp-net-core) 应用程序以两种承载模型之一使用 IIS。在进程内模型中，应用运行于 IIS 工作进程（w3wp.exe 或 iisexpress.exe）之内，由 IIS 通过 WAS 进行进程管理；微软的性能测试发现，进程内的请求吞吐量显著高于进程外，因为请求不再经由环回适配器代理。在进程外模型中，ASP.NET Core 模块用 Kestrel 服务器在独立进程中启动应用，崩溃时将其重启，并把来自 HTTP.sys 的请求转发到本地随机端口上的 Kestrel；随后 IIS 可以用 HTTP/3 响应客户端，同时以 HTTP/1.1 代理到 Kestrel。<sup>[7](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-10.0)</sup>

## 版本历史与协议支持

IIS 各版本与 Windows 版本同步：IIS 6.0 随 [Windows Server 2003](https://www.edgepedia.org/zh/windows-server-2003) 发行（支持期自 2003 年 5 月 28 日至 2015 年 7 月 15 日），IIS 7.0 随 [Windows Server 2008](https://www.edgepedia.org/zh/windows-server-2008)，IIS 7.5 随 [Windows 7](https://www.edgepedia.org/zh/windows-7) 与 Windows Server 2008 R2，IIS 8 随 Windows Server 2012，IIS 8.5 随 Windows Server 2012 R2，IIS 10 随 Windows 10 与 Windows Server 2016。<sup>[1](https://learn.microsoft.com/en-us/lifecycle/products/internet-information-services-iis)</sup>

IIS 10.0 增加了 HTTP/2 支持，实现在 HTTP.sys 内核驱动之中，因此现有网站无需改动配置即可受益；同时还增加了在最小化的 Nano Server 安装选项上运行 IIS、在 Windows 与 Hyper-V 容器中运行、通配符主机头，以及新的 IISAdministration PowerShell 模块。<sup>[4](https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/new-features-introduced-in-iis-10)</sup> 1709 版增加了开箱即用的 HTTP 严格传输安全（HSTS）支持，以及记录协商所得加密协议与加密算法的日志变量。<sup>[16](https://learn.microsoft.com/en-us/iis/get-started/)</sup> 在 IIS 上以进程内和进程外方式承载 ASP.NET Core 时均支持 HTTP/3，要求 Windows Server 2022 或 [Windows 11](https://www.edgepedia.org/zh/windows-11) 及更高版本、一个 HTTPS 绑定，以及 EnableHttp3 注册表项。<sup>[17](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/http3?view=aspnetcore-10.0)</sup>

## 使用情况与其他 Web 服务器的比较

W3Techs 的调查显示，截至 2026 年 10 月，Microsoft-IIS 约占所有 Web 服务器已知的网站的 3.0%，而 Apache 为 21.7%；在前 1,000,000 个站点中，IIS 的使用率升至 6.0%，前 100,000 个站点中为 6.4%，到前 1,000 个站点则降至 2.1%。<sup>[8](https://w3techs.com/technologies/comparison/ws-apache%2Cws-microsoftiis)</sup> 一项 2024 年在 Windows 上使用 [Apache JMeter](https://www.edgepedia.org/zh/apache-jmeter) 进行的比较研究发现，对于静态网站，IIS 在 HTTP 下表现良好、无错误且吞吐量可观；对于动态的 [WordPress](https://www.edgepedia.org/zh/wordpress) 与 [Moodle](https://www.edgepedia.org/zh/moodle) 站点，IIS 在 HTTPS 下响应时间较慢，但错误更少，在高并发请求水平下吞吐量良好；NGINX 在动态站点上占用的资源更少。<sup>[18](https://dit.rsu.ac.th/incit2024/en/download/Proceeding_book_INCIT24.pdf)</sup> 2011 年一项针对静态内容服务的独立基准测试发现，IIS 属于使测试网络饱和于约 930 兆比特每秒的服务器之列，其作者指出，该结果取决于一种极简的静态内容配置，其中许多 IIS 组件被关闭。<sup>[19](https://www.webperformance.com/load-testing-tools/blog/2011/11/what-is-the-fastest-webserver/)</sup>

## References

1. [Internet Information Services (IIS) – Microsoft Lifecycle](https://learn.microsoft.com/en-us/lifecycle/products/internet-information-services-iis)
2. [Install the Web Server WEB1 – Microsoft Learn](https://learn.microsoft.com/en-us/windows-server/networking/core-network-guide/cncg/server-certs/install-the-web-server-web1)
3. [Microsoft Ships Internet Information Server Free (February 12, 1996) – Microsoft press release](https://news.microsoft.com/source/1996/02/12/microsoft-ships-internet-information-server-free-product-outperforms-unix/)
4. [New Features Introduced in IIS 10.0 – Microsoft Learn](https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/new-features-introduced-in-iis-10)
5. [Introduction to IIS Architectures – Microsoft Learn](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/introduction-to-iis-architecture)
6. [Microsoft Ships Internet Information Server 3.0 (December 10, 1996) – Microsoft press release](https://news.microsoft.com/source/1996/12/10/microsoft-ships-internet-information-server-3-0/)
7. [Host ASP.NET Core on Windows with IIS – Microsoft Learn](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-10.0)
8. [Apache vs. Microsoft-IIS usage statistics – W3Techs](https://w3techs.com/technologies/comparison/ws-apache%2Cws-microsoftiis)
9. [Windows NT 4.0 RTM anniversary – Tom's Hardware](https://www.tomshardware.com/software/windows/windows-nt-4-0-brought-the-win95-ui-to-servers-30-years-ago-today-milestone-unifying-modern-windows-os-hit-rtm-in-the-pentium-era)
10. [Internet Information Server Resource Kit (1998) – bitsavers](https://www.bitsavers.org/pdf/microsoft/resource_kits/Internet_Information_Server_Resource_Kit_1998.pdf)
11. [Malicious IIS extensions quietly open persistent backdoors into servers – Microsoft Security Blog](https://www.microsoft.com/en-us/security/blog/2022/07/26/malicious-iis-extensions-quietly-open-persistent-backdoors-into-servers/)
12. [NIST Special Publication 800-40, Patch Management](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-40.pdf)
13. [Microsoft Security Bulletin MS02-018 – Microsoft Learn](https://learn.microsoft.com/en-us/security-updates/securitybulletins/2002/ms02-018)
14. [Request Filtering <requestFiltering> – Microsoft Learn](https://learn.microsoft.com/en-us/iis/configuration/system.webServer/security/requestFiltering/)
15. [Windows Authentication <windowsAuthentication> – Microsoft Learn](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/windowsauthentication)
16. [New Features Introduced in IIS 10.0 Version 1709 – Microsoft Learn](https://learn.microsoft.com/en-us/iis/get-started/)
17. [Use ASP.NET Core with HTTP/3 on IIS – Microsoft Learn](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/http3?view=aspnetcore-10.0)
18. [A Comparative Performance of Web Server on Windows – INCIT24 proceedings](https://dit.rsu.ac.th/incit2024/en/download/Proceeding_book_INCIT24.pdf)
19. [Apache vs Nginx vs Lighttpd vs IIS Benchmarks – Web Performance](https://www.webperformance.com/load-testing-tools/blog/2011/11/what-is-the-fastest-webserver/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Web servers and content platforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/internet-information-services

English original: https://www.edgepedia.org/internet-information-services
