基于Linux的服务器上运行的ASP.Net [英] Running ASP.Net on a Linux based server

查看:130
本文介绍了基于Linux的服务器上运行的ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关使用Java背景的开发者,我感兴趣的是使用ASP.NET工具/平台,以及探索软件的开发。

For a developer with a Java background, I am interested in exploring software development using the ASP.NET tools/platform as well.

Java Web应用程序(的.jsp和servlet)可以在许多服务器平台上运行。

Java web applications (.jsp and servlets) can run on many server platforms.

:将一个.NET Web应用程序能够在基于Linux的服务器上运行?考虑到不能够使用Windows服务器托管的Web应用程序的场景。

Question: Will a .NET web application be able to run in a Linux based server? Considering the scenario of not being able to use a Windows server for hosting a web app.

推荐答案

这取决于你所使用的特定.NET技术。该 Mono项目为运行ASP.NET网站的Apache模块(是mod_mono),并从我收集它的工作原理好。

It depends what specific .NET technologies you're using. The Mono Project provides an Apache module (mod_mono) for running ASP.NET sites, and from what I gather it works well.

单不支持所有的.NET的API,虽然 - 特别是WPF(也可能是WCF也一样,我不记得了) - 但它对于其他框架多提供良好的支持。

Mono doesn't support all the .NET APIs, though - notably WPF (and possibly WCF too, I can't remember) - but it does provide good support for much else of the framework.

如果你是从头开始,特别是要针对非Windows服务器,然后确保你的项目支持Mono。将是一个很好的目标瞄准。但是,如果你需要特定的API或不被支持单语言特性,那么你将需要使用Windows服务器进行部署。这是一个设计时/架构选择,应该让锋线。

If you're starting from scratch and particularly want to target non-Windows servers, then ensuring your project works with Mono would be a good goal to aim for. However, if you need particular APIs or language features that are not supported by Mono, then you will need to use a Windows server for deployment. It's a design-time/architectural choice that should make up front.

这篇关于基于Linux的服务器上运行的ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆