[英]Deploy ASP.NET Core application to IIS
There are a lot of articles all over the Internet about deploying of .NET Core applications to IIS server, but i still can not find clear answers to the following questions:互联网上有很多关于将.NET Core应用程序部署到IIS服务器的文章,但我仍然找不到以下问题的明确答案:
Thanks.谢谢。
It's not managed code , which is to say that IIS is not loading a module to run it as it would with a traditional ASP.NET application, but the lifetime is still tied to the app pool like any other website hosted by IIS.它不是托管代码,也就是说 IIS 不会像使用传统的 ASP.NET 应用程序那样加载模块来运行它,但是生命周期仍然像 IIS 托管的任何其他网站一样与应用程序池相关联。 Long and short, configure the app pool how you want it.总而言之,根据您的需要配置应用程序池。
Again, the app pool is what matters in terms of starting and stopping.同样,应用程序池在启动和停止方面很重要。 Each of your Core apps should be running in their own app pools, which then means you can independently start/stop each one on their own.您的每个 Core 应用程序都应该在自己的应用程序池中运行,这意味着您可以独立启动/停止每个应用程序。
Yes, you can still use Web Deploy.是的,您仍然可以使用 Web 部署。 Deployment is really totally separate from what is being deployed.部署实际上与正在部署的内容完全分开。 The initial configuration of the site in IIS and the actual build that happens during publish takes care of all the Core-specific differences. IIS 中站点的初始配置和发布期间发生的实际构建处理所有特定于 Core 的差异。 Web Deploy is just moving files. Web 部署只是移动文件。
I don't believe I'm an expert on this issue, but I can share my experiences hosting .net core web api behind IIS.我不相信我是这个问题的专家,但我可以分享我在 IIS 后面托管 .net core web api 的经验。
OT, Compared to Kestrel, my app (and all my POC apps) gets ~40% more rps when hosted on IIS. OT,与 Kestrel 相比,我的应用程序(以及我所有的 POC 应用程序)在 IIS 上托管时获得了大约 40% 的 rps。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.