简体   繁体   English

适用于Node.JS项目的AWS部署NGINX连接被拒绝

[英]AWS Deployment NGINX Connection Refused for Node.JS Project

Have a Standard Node.JS Project. 有一个标准的Node.JS项目。 When Deployed on AWS , The Server is Running and initializing Properly But NGINX gives the Below Error AWS部署时,服务器正在正确运行并初始化,但NGINX出现以下错误

-------------------------------------
/var/log/nginx/error.log
-------------------------------------
2015/04/18 10:49:56 [error] 4445#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XX, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8081/", host: "stagingmyproj.elasticbeanstalk.com"
2015/04/18 10:49:56 [error] 4445#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XX, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8081/favicon.ico", host: "stagingmyproj.elasticbeanstalk.com"
2015/04/18 10:50:05 [error] 4445#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XX, server: , request: "GET /vendor/login HTTP/1.1", upstream: "http://127.0.0.1:8081/vendor/login", host: "stagingmyproj.elasticbeanstalk.com"
2015/04/18 10:50:06 [error] 4445#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XX, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8081/favicon.ico", host: "stagingmyproj.elasticbeanstalk.com"
2015/04/18 10:50:28 [error] 4445#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XX, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8081/", host: "stagingmyproj.elasticbeanstalk.com"
2015/04/18 10:50:28 [error] 4445#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: XXX.XX.XX.XX, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8081/favicon.ico", host: "stagingmyproj.elasticbeanstalk.com"

I am using the AWS Elastic BEanstalk Console. 我正在使用AWS Elastic BEanstalk控制台。 Not the Command Line Tool. 不是命令行工具。 Not sure If I am even using NGInx. 不知道我是否正在使用NGInx。

I am not a Dev Ops Person, But I don't have any clue about NGinx. 我不是开发人员,但我对NGinx没有任何了解。 What's the best possible solution out of here? 最好的解决方案是什么?

Cheers and Thanks in Advance. 预先加油和感谢。

Take a look at this answer that I answered previously. 看一下我之前回答的答案。 A lot of people have issues with one part, so the answer tries to explain everything from your browser down to nginx: elastic beanstalk weird nginx configuration 很多人的一个部分都有问题,因此答案试图解释从浏览器到nginx的所有内容: 弹性beantalk奇怪的nginx配置

It should at least give you a starting point for debugging and being able to eliminate issues. 它至少应该为您提供调试和消除问题的起点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM