简体   繁体   English

如何将ASP.NET网站(ASP.NET 5之前的版本)部署到Linux服务器?

[英]How to deploy ASP.NET website (version prior to ASP.NET 5) to Linux server?

I am currently in process of identifying a mechanism to deploy ASP.NET websites to Linux server. 我目前正在确定将ASP.NET网站部署到Linux服务器的机制。 I know this requires Apache to be installed on Linux, and can be achieved using Mono. 我知道这需要在Linux上安装Apache,并且可以使用Mono实现。

I found a lot many articles but they all are referring to ASP.NET version 5 (i believe, vNext). 我发现了很多文章,但它们都指的是ASP.NET版本5(我相信,vNext)。 But couldn't find anything for a version prior to that. 但在之前的版本中找不到任何东西。

Is it due to "System.Web" assembly that we can't deploy ASP.NET website on anything except IIS? 是否由于“System.Web”程序集,我们无法在除IIS之外的任何内容上部署ASP.NET网站? I know, OWIN has replaced that in vNext. 我知道,OWIN已经在vNext中取代了它。

Any help on deployment of previous versions of ASP.NET to Linux will be very appreciated. 任何帮助将以前版本的ASP.NET部署到Linux都将非常感激。

The new version of ASP.NET, version 5, and more specifically the .NET Core, runs cross-platform. 新版本的ASP.NET,版本5,更具体地说是.NET Core,运行跨平台。 That's why there is a lot of information about running ASP.NET 5 (or vNext) on Linux with Kestrel, the new cross platform webserver for ASP.NET 5. 这就是为什么有很多关于在Linux上使用Kestrel运行ASP.NET 5(或vNext)的信息的原因,Kestrel是ASP.NET 5的新跨平台Web服务器。

However, you can run older ASP.NET projects on Apache using, indeed, Mono. 但是,您可以使用Mono在Apache上运行较旧的ASP.NET项目。 The official documentation can be found here: http://www.mono-project.com/docs/web/aspnet/#aspnet-hosting-with-apache and here: http://www.mono-project.com/docs/web/mod_mono/ 官方文档可以在这里找到: http//www.mono-project.com/docs/web/aspnet/#aspnet-hosting-with-apache和这里: http//www.mono-project.com/docs /网络/是mod_mono /

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM