Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EC2에서 애플리케이션이 꺼지는 현상 #691

Open
moonpiderman opened this issue Nov 14, 2021 · 0 comments
Open

EC2에서 애플리케이션이 꺼지는 현상 #691

moonpiderman opened this issue Nov 14, 2021 · 0 comments
Labels
Spring Boot Spring Boot 관련 내용

Comments

@moonpiderman
Copy link
Collaborator

요약

EC2에서 서버를 돌리면 대략 1시간 뒤에 서버가 꺼지는 현상이 나타났습니다.





해결방법

근본적인 해결방법이 맞는지는 정확히 파악하지 못했습니다. 분명 다른 방법도 있을 것으로 추측합니다!
앞서 말씀드렸듯이 EC2에서 서버를 돌리면 대략 1시간 뒤에 애플리케이션이 꺼지는 현상이 나타났습니다.
저는 터미널에서 ec2 연결시에 Broken piped 도 나타난 적이 있어서 이 문제인가 싶었지만 그렇지 않았습니다.

nohup 명령어가 애플리케이션을 백그라운드에서 실행시켜준다고 하여 스크립트에 nohup을 붙여서 작성했더니
애플리케이션이 꺼지는 현상이 사라졌습니다!

혹시 저와 같은 증상을 겪는 분들이 계실까봐 공유드립니다!

@moonpiderman moonpiderman added the Spring Boot Spring Boot 관련 내용 label Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spring Boot Spring Boot 관련 내용
Projects
None yet
Development

No branches or pull requests

1 participant