上传MVC网站服务器 [英] Uploading MVC site to server

查看:167
本文介绍了上传MVC网站服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了使用C#.NET的网站MVC4,现在我想将它上传到互联网。
我从来没有上传过任何网站,所以我真的不知道什么步骤,我需要做的。
它是否不管使用什么样的服务器,因为当我通过VS2012运行网站,我可以看到它与IIS前preSS运行,但后来我意识到有几种类型的服务器,如Apache。我是否需要特定类型的服务器?
而关于域名是什么?是什么域和服务器之间的差

I've built an .NET MVC4 website using C#, and now I want to upload it to the internet. I've never uploaded any website so I don't really know what steps I need to do. Does it matter what kind of server to use, because when I run the website through VS2012 I can see it runs with IIS express, but then I realized there are several kinds of servers, like apache. Do I need specific kind of server? And what about domain? what is the difference between domain and server.

感谢。

推荐答案

您将需要IIS运行.NET应用程序。 Apache是​​更适合的Java,PHP等语言。

You will need IIS for running .NET applications. Apache is more suited for Java, PHP and other languages.

服务器/主机中上传项目文件的空间。

The server/hosting is the space where you upload your project files.

域名或IP地址是什么在把你的浏览器栏能够访问你的应用程序。 (例如:google.com就是谷歌的网站托管其指向某些服务器的域)。除非你想在你需要购买一个域名的浏览器中输入服务器的IP地址来访问你的应用程序。
看看这里进行了更详细的解释:
<一href=\"http://support.hostgator.com/articles/hosting-guide/what-is-the-difference-between-domains-vs-hosting-vs-website\" rel=\"nofollow\">http://support.hostgator.com/articles/hosting-guide/what-is-the-difference-between-domains-vs-hosting-vs-website

The domain or ip address is what in put in your browser bar to be able to access your application. (Ex: google.com is a domain which is pointing to some server where the google site is hosted).Unless you want to access your application by typing the ip address of the server in the browser you need to buy a domain. Take a look here for a more detailed explanation: http://support.hostgator.com/articles/hosting-guide/what-is-the-difference-between-domains-vs-hosting-vs-website

许多网站托管服务提供商允许您在购买主机时serivce购买域名,但你可以买separatly它,然后将其指向您的服务器的IP地址。

Many web hosting providers allow you to buy a domain when purchasing the hosting serivce but you can buy it separatly and then point it to the ip address of your server.

我不知道很多关于Windows虚拟主机提供商,但你可能会开始寻找在微软Asp.net网站:的 http://www.microsoft.com/web/hosting/home

I dont know many about WIndows web hosting providers but you might start looking in the Microsoft Asp.net website: http://www.microsoft.com/web/hosting/home

在你的情况,你需要选择支持MVC4一个托管服务提供商。

In your case you need to choose a hosting provider which supports MVC4.

然后,你需要你的项目上传到服务器。下面一起来看看: http://msdn.microsoft .COM / EN-US /库/ dd410407(v = VS.90)的.aspx

Then you need to upload your project to the server. Take a look here: http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx

您的服务器应该有配置的FTP帐户​​。你可以用它来上传文件。

Your server should come with an FTP account configured. You can use it to upload your files.

这篇关于上传MVC网站服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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