Quiet
  • HOME
  • ARCHIVE
  • CATEGORIES
  • TAGS
  • LINKS
  • ABOUT

Sean

  • HOME
  • ARCHIVE
  • CATEGORIES
  • TAGS
  • LINKS
  • ABOUT
Quiet主题
  • ASP.NET
  • Linux
  • 部署
  • CentOS

.NET 6部署到Windows IIS(64位服务器)

Sean
技术文章

2022-01-17 20:00:00

.NET 6部署到Windows IIS(64位服务器)

  • 安装SDK(仅开发计算机,正式环境忽略)

    https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.101-windows-x64-installer

  • 安装 .NET Core 托管捆绑包

    https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.1-windows-hosting-bundle-installer

    安装完成后,重启服务器或在命令行界面中执行 net stop was /y,后跟 net start w3svc

  • 安装老系统兼容包(可选)

    Visual C++ 可再发行程序包要求

    在较旧版本的 Windows(例如 Windows Server 2012 R2)上,安装 Visual Studio C++ 2015、2017、2019 可再发行程序包。 否则,Windows 事件日志中令人困惑的错误消息会报告 The data is the error.

    当前 x64 VS C++ 可再发行程序包

参考资料:https://docs.microsoft.com/zh-cn/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-6.0&tabs=visual-studio

上一篇

Windows下部署Nginx

下一篇

.NET 6 使用System.Drawing.Common出现 The type initializer for 'Gdip' threw an exception异常的解决办法

©2023 By Sean. Theme:Quiet
Quiet主题