https://stackoverflow.com/questions/29370360/nodejs-connect-failed-111-connection-refused-while-connecting-to-upstream

 

NodeJS connect() failed (111: Connection refused) while connecting to upstream

I am running into an issue today where all of a sudden my Elastic Beanstalk app is sending me to a 502 Bad Gateway page. Now I have run into this issue in the past and the reason why this was happe...

stackoverflow.com

 

 

NodeJS connect() failed (111: Connection refused) while connecting to upstream

I am running into an issue today where all of a sudden my Elastic Beanstalk app is sending me to a 502 Bad Gateway page. Now I have run into this issue in the past and the reason why this was happe...

stackoverflow.com

위는 502 bad gateway 해결 참고 링크이다.

코드를 바꾼후 반영이 안돼서 pm2 를 여러번 stop, start 하다보니 문제가 발생했다. 갑자기 잘 접속되던 모든 url 이 에러를 뱉었다. 

구글링을 하다 포트 번호를 바꾸어주니 잘 접속됐다. 원인이 무엇일지 아직 잘 모르겠다. node에 대해서 더 공부해야겠다..

2. nginx 설정 파일 세팅 

https://stackoverflow.com/questions/29370360/nodejs-connect-failed-111-connection-refused-while-connecting-to-upstream

 

NodeJS connect() failed (111: Connection refused) while connecting to upstream

I am running into an issue today where all of a sudden my Elastic Beanstalk app is sending me to a 502 Bad Gateway page. Now I have run into this issue in the past and the reason why this was happe...

stackoverflow.com

위의 답글을 참고하여 설정했다. 

'Backend Issue' 카테고리의 다른 글

node-sass error  (0) 2020.10.14
정규표현식 정리  (0) 2020.08.17
nginx nodejs mongodb mongoose  (0) 2020.08.09
키 파일 없이 ssh 접속  (0) 2020.08.01
비밀번호 암호화  (0) 2020.05.15

+ Recent posts