English 中文(简体)
亚马逊Ec2上的对角枪没用吗?
原标题:django-nginx-gunicorn on Amazon ec2 is not working?

我尝试了这个教程 < a href > http://adrian.org.ar/python/django-nginx-green-uncorn-in-an-ubuntu-11-10-ec2-instance" rel=“nofollow” 来设置有ngngnix和gunicorn的对齐。 我已在虚拟环境安装了dango和gunicorn。 Everthing已经安装完好,甚至每部命令都安装完好。

2012-05-22 13:22:38 [3146] [INFO] Starting gunicorn 0.14.3
2012-05-22 13:22:38 [3146] [INFO] Listening at: http://0.0.0.0:8000 (3146)
2012-05-22 13:22:38 [3146] [INFO] Using worker: sync
2012-05-22 13:22:38 [3149] [INFO] Booting worker with pid: 3149

但是,如果我通过浏览器进入我的Amazon DNS < code> http://ec2-XX-XX-XXX-XXX.com:800/ 浏览器显示“找不到/连接”信息。 但如果我去 http://ec2-XX-XX-XXX-XXX.com 通过浏览器显示Ngnix欢迎页面。我不知道为什么炮兵不回我Django欢迎页面,因为i goto http://ec2-XX-XX-XXX-XXX.compute-1.amazonaws.com:8000 。 我甚至能看到任何关于炮兵的炮弹请求日志。

请注意,我在用对讲机

最佳回答

看来你需要配置一个安全组 来控制 EEC2 实例的存取 。

你最后应该用这样的方式结束:

https://skitch.com/ikis/8h1tc/aws-management-conole>>https://skitch.com/ikis/8h1tc/aws-management-conole

在我的例子中,22、80和8000 向世界开放。

问题回答

暂无回答




相关问题
nginx behaved differently for different version

I have used docker image nginx:1.18.0-alpine previously and below is the conf. It works as expected app.localhost --> points to the block wit server_name app.* localhost --> points to the other ...

What s limiting my PHP resources?

I m having a problem getting more memory out of PHP. This is the error message: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 82 bytes) in ... Yet: I ve set ...

what user I should run my nginx or php-fpm processes

Ok. Im little bit confused about those permissions in linux so please people help me out. The trouble is that I dont want to run server as root, so I created another user with sudo privileges so he ...

Nginx 301 redirect inc. set cookie

what I m looking for is the ability for nginx to detect that a url has the query string variable cid. for example www.adomain.com/froggy?cid=12&as=false (query string can be solo or mixed with ...

Nginx raises 404 when using format => js

I upload images to my App using Ajax and an Iframe. In Development everything works like a charm. But in production Nginx suddenly raises a 404 error. When I look into the log, the request never hits ...

nginx errors readv() and recv() failed

I use nginx along with fastcgi. I see a lot of the following errors in the error logs readv() failed (104: Connection reset by peer) while reading upstream and recv() failed (104: Connection ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签