如何设置Django的网站在Amazon EC2上托管? [英] How to setup Django website in Amazon EC2 hosting?

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

问题描述

有人可以给出具体的步骤如何实施托管一个Django根据网站通过使用Amazon EC2托管服务?

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

这可能吗?

我的网站源$ C ​​$ C可以发现

My website source code can be found here

我goolged,发现此<一个href="http://thomas.broxrost.com/2008/08/21/persistent-django-on-amazon-ec2-and-ebs-the-easy-way/">article

I goolged and found this article

但做任何事情之前,我只是想获得亚马逊EC2托管的一些基本思路。

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

推荐答案

这当然是可能的,但它听起来像EC2是不是你最好的选择。对于人的例子做,谷歌的Django的EC2,并检查了<打击>第一和第二环节。像的链接Django的安装上,亚马逊EC2 />这个这个(编辑,因为这问题是,现在该查询顶谷歌的结果!)

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!)

在一个非常过于简化的意义上来说,EC2只是一个你可以按小时租用服务器。你可以把它运行Windows或Linux,然后安装Python和Django的就像你通常会。事实上,有可能是有Django的preconfigured已经是一个图像。哪个阶段你的项目,你在哪里?就在研究,或者你得到被困在一个特定的问题或者Django的还是EC2?

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?

更新: 好吧,我想你感到困惑的是,有各种不同类型的托管在那里的。在极端情况下,你可以支付你自己的物理服务器,安装自己的操作系统(如Windows或Linux),安装你自己的Python,你自己的Web服务器,如Apache或IIS,你自己的Django库,您自己的数据库(如MySQL的)等,然后上传你的网站了。在另一个极端,你可以支付一个共享的主机服务,在别人已经做过的操作系统,蟒蛇,Web服务器等所有设置一个帐户,和所有你需要做的就是上传你的网站code。 EC2是很多更接近第一极致,可能是矫枉过正给你。我觉得你的情况,你应该寻找一个更托管解决方案。照片 我想看看这个网页,其中列出了一堆不同的Django的托管公司: Django的托管

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

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

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