[英]How can I serve an ASP.NET application on a Linux Server?
Is it possible?可能吗? If so, please explain how to do it.
如果是这样,请解释如何做。
You can run most ASP.Net applications on Linux using Mono:您可以使用 Mono 在 Linux 上运行大多数 ASP.Net 应用程序:
http://www.mono-project.com/ASP.NET http://www.mono-project.com/ASP.NET
Mono is an open source implementation of (most of).Net Mono 是(大部分).Net 的开源实现
As other posters have noted, you can use Mono and Apache with mod_mono.正如其他海报所指出的,您可以将 Mono 和 Apache 与 mod_mono 一起使用。 I have no idea whether it's robust and feature-rich enough for your needs.
我不知道它是否足够强大且功能丰富,可以满足您的需求。 (Mono's current implementation of WCF is only skeletal, for example.) So whether it's advisable depends on what you plan on doing.
(例如,Mono 目前对 WCF 的实现只是骨架。)因此是否可取取决于您打算做什么。 If other people's money is riding on your applications being robust, it's safest to just plonk some money down on a windows server and going full Microsoft.
如果其他人的钱依赖于您的应用程序的健壮性,那么最安全的做法是在 windows 服务器上投入一些资金并完全使用 Microsoft。
Update: in the comments, you suggest that price is a concern.更新:在评论中,您认为价格是一个问题。 In the long run, what you pay for hosting is tiny compared to the costs involved in using inferior software.
从长远来看,与使用劣质软件所涉及的成本相比,您为托管支付的费用微不足道。 I'd recommend either using Windows hosting, or using a different development environment altogether if you have a choice.
我建议使用 Windows 托管,或者如果您可以选择完全使用不同的开发环境。 LAMP, Java, Ruby on Rails--each of these are perfectly fine choices, and I'm sure there are many others.
LAMP、Java、Ruby on Rails——每一个都是非常好的选择,我相信还有很多其他的。 But if you are constrained to using .NET for some reason, Microsoft is really the only choice right now for enterprise-quality ASP.NET.
但是,如果您出于某种原因受限于使用 .NET,Microsoft 确实是目前企业级质量 ASP.NET 的唯一选择。
I wouldn't try using Mono.我不会尝试使用 Mono。 You could use VMware or something but I would try go a different route.
您可以使用 VMware 或其他东西,但我会尝试 go 不同的路线。 You can run a very basic ASP.NET site on Mono;
您可以在 Mono 上运行一个非常基本的 ASP.NET 站点; but I mean very basic.
但我的意思是非常基本的。 If your site is non-trivial, I wouldn't recommend this approach.
如果您的网站不重要,我不会推荐这种方法。
It's possible to run ASP.NET on Linux.可以在 Linux 上运行 ASP.NET。 You should take a look at the Mono project , Mono has an implementation of ASP.NET and ASP.NET AJAX.
You should take a look at the Mono project , Mono has an implementation of ASP.NET and ASP.NET AJAX.
You need to use mono and XPS (which is the server that runs the ASP.NET framework on mono).您需要使用 mono 和 XPS(这是在单声道上运行 ASP.NET 框架的服务器)。 There is a standalone version of XPS and one that works through Apache.
有一个独立版本的 XPS 和一个通过 Apache 工作的版本。 That is the best way to serve the files on Linux.
这是在 Linux 上提供文件的最佳方式。
It may be possible with the use of WINE (or something similar, Mono, thats it.) but you will require all the .NET framework so it may be a bit much to setup使用 WINE(或类似的东西,Mono,就是这样)可能是可能的,但您将需要所有 .NET 框架,因此设置起来可能有点多
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.