将MVC4部署到Linux [英] Deploying mvc4 to linux

查看:98
本文介绍了将MVC4部署到Linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为一个客户在ASP.NET MVC 4中建立了我的第一个网站,他在1eurohosting.net上购买了一个主机.在他们的网站的常见问题上说

I've made my first website in ASP.NET MVC 4 for a customer, and he bought a host at 1eurohosting.net. On their website's FAQ it says

您提供基于Windows的服务吗? 我们不.我们仅提供基于Linux的服务."

"Do you offer Windows based services? We do not. We only offer Linux based services."

我已经阅读到仍然可以使用mono在Linux上运行MVC4应用程序,但是我该怎么做?

I've read that its still possible to run a MVC4 application on linux using mono, but how would I do this?

到目前为止,我一直尝试通过右键单击解决方案资源管理器来发布网站,然后按照您单击发布"时的步骤进行操作.发布工作正常,文件在Web服务器上,但无法运行,因为我认为我需要使用mono.

What I've tried so far is publish the website by right clicking solution explorer, and following the steps when u click "publish". The publishing works fine, and the files are on the webserver, but it doesn't run, because I think I need to use mono.

我现在不知道该怎么办.我下一步该怎么办?如果必须使用单声道,该如何使用?

I don't know what to do at this point. What do I do next? If I have to use mono, how can I use it?

推荐答案

似乎我需要支持IIS或Mono的主机.我不认为我当前的虚拟主机支持Mono,不过,我仍将尝试与他们联系.

It seems that I either need a host that supports IIS or Mono. I dont think my current webhost supports Mono, I am still going to try and contact them, though.

这篇关于将MVC4部署到Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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