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

问题描述

有人可以针对使用Amazon EC2托管服务实现基于Django的网站托管提供具体步骤吗?

Can someone give specific steps on how to implement hosting of a Django-based website using Amazon's EC2 hosting service?

有可能吗?

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

My website source code can be found here.

我搜索并发现。

但是在做任何事情之前,我只想了解一些基本思想关于Amazon EC2托管。

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

推荐答案

当然可以,但是听起来EC2并不是您的最佳选择。有关执行此操作的人员的示例,请参见例如或。

It certainly is possible, but it sounds like EC2 is not the best option for you. For examples of people doing it, see for example this or this.

在一个非常简化的意义上,EC2只是您可以按小时租用的服务器。您可以使其运行Windows或Linux,然后像往常一样安装Python和Django。实际上,可能已经有一个预配置了Django的映像。

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.

您应该了解那里存在各种不同类型的托管。在一个极端情况下,您可以购买自己的物理服务器,安装自己的操作系统(例如Windows或Linux),安装自己的Python,自己的Web服务器(例如Apache或IIS),自己的Django库,自己的数据库(例如MySQL)等,然后将您的网站上传到该网站。在另一种极端情况下,您可以为共享托管服务上的帐户付费,其他人已经完成了OS,Python,Web服务器等的所有设置,而您所需要做的就是上传网站代码。 EC2更接近第一个极限,可能对您来说过于矫kill过正。我认为,在您的情况下,您应该寻找一个更具托管性的解决方案。

我将查看此网页,其中列出了许多不同的Django托管公司:

You should understand 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, 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网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 10:32