如何在Amazon EC2主机中设置Django网站? [英] How to setup Django website in Amazon EC2 hosting?

查看:133
本文介绍了如何在Amazon EC2主机中设置Django网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以通过使用亚马逊EC2托管服务来实现托管基于Django的网站的具体步骤吗?



可以吗?



我的网站源代码可以在 here 找到



我发现这个文章



但在做任何事情之前,我只想得到一些关于Amazon EC2托管的基本想法。

解决方案

这当然是可能的,但是听起来像EC2不是最好的选择。对于人们做的例子,google为django ec2,并查看第一和第二个链接。链接,如这个这个(编辑,因为这个问题现在是该查询的顶级谷歌结果!)



在一个非常简单的意义上,EC2只是一个服务器,你可以按小时租金。你可以运行windows或linux,然后像你一般安装python和django。事实上,可能已经有一个django预先配置的映像。你在什么阶段你的项目?只要研究一下,或者您是否遇到django或ec2的特定问题?



更新:
好​​吧,我想你所困惑的是,有不同类型的托管在那里。在一个极端,您可以为自己的物理服务器付费,安装自己的操作系统(如windows或linux),安装自己的python,你自己的web服务器像apache或者IIS,你自己的django库,你自己的数据库mysql)等,然后上传你的网站。在另一个极端,您可以在共享托管服务上支付一个帐户,其中有人完成了操作系统,python,Web服务器等的所有设置,所有您需要做的是上传您的网站代码。 EC2更接近第一极限,可能对你来说太过分了。我想在你的情况下,你应该寻找一个更受管理的解决方案。

我会查看这个网页,其中列出了一堆不同的django托管公司:
Django托管


Can someone give specific steps how to implement hosting a Django based website by using Amazon EC2 hosting service?

Is that possible?

My website source code can be found here

I goolged and found this article

But before doing anything I just want to get some basic ideas about Amazon EC2 hosting.

解决方案

It certainly is possible, but it sounds like EC2 is not the best option for you. For examples of people doing it, google for "django ec2" and check out the first and second links. links like this or this (edited because this question is now the top google result for that query!)

In a very oversimplified sense, EC2 is just a server you can rent by the hour. You can have it run windows or linux, and then install python and django like you normally would. In fact there is probably an image that has django preconfigured already. What stage of your project are you at? Just researching, or have you gotten stuck on a particular problem with either django or ec2?

UPDATE: Ok, I think what you are confused about is that there are all different types of hosting out there. At one extreme, you can pay for your very own physical server, install your own operating system (like windows or linux), install your own python, you own web server like apache or IIS, your own django libraries, your own database (like mysql) etc, and then upload your web site to that. At the other extreme you can pay for an account on a shared hosting service, where someone else has done all the setup of the OS, the python, the web server, etc, and all you need to do is upload your web site code. EC2 is a lot closer to the first extreme, and is probably overkill for you. I think in your case you should be looking for a more managed solution.
I would check out this web page, which lists a bunch of different django hosting companies: Django hosting

这篇关于如何在Amazon EC2主机中设置Django网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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