Windows7下 部署 ASP.NET 服务器 (IIS 7)

来源:Microsoft官网(http://technet.microsoft.com/zh-cn/library/cc731252(v=WS.10).aspx)

使用 Windows Vista 或 Windows 7 UI

  1. 单击“开始”,然后单击“控制面板”

  2. “控制面板”中,单击“程序”,然后单击“打开/关闭 Windows 功能”

  3. “Windows 功能”对话框中,单击“Internet Information Services”以安装默认的功能,然后选择以下附加功能(万维网服务->应用程序开发功能下):

    • ASP.NET 

    • .NET 扩展性 

    • 请求筛选 (万维网服务->安全性)

    • ISAPI 

    • ISAPI 扩展 

  4. 单击“确定”以关闭“Windows 功能”对话框。

  5. 注意需要勾选Web管理工具下的所有选项
  6. 若要验证是否成功安装了 IIS,请在 Web 浏览器中键入以下内容:

    http://localhost

    您应看到默认的 IIS“欢迎”页。

使用命令行

  • 在命令提示符处或在脚本中键入以下命令:
    Start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole; WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

原文地址:https://www.cnblogs.com/yansjhere/p/3836958.html