AWS EC2 Nginx Process 관리

하스레·2022년 8월 15일
  1. nginx 서버 시작
$ sudo systemctl start nginx
  1. 서버 중지
$ sudo systemctl stop nginx
  1. 서버 재시작
$ sudo systemctl restart nginx
  1. configuration을 바꿨을 때 reload
$ sudo systemctl reload nginx
  1. nginx 상태 확인
$ systemctl status nginx.service

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04

profile
Software Developer

2개의 댓글

comment-user-thumbnail
2025년 1월 9일

AWS EC2에서 NGINX를 관리할 때 비슷한 상황을 겪었습니다. sudo systemctl 명령어인 start, stop, restart, reload는 NGINX 프로세스를 관리하는 데 매우 유용합니다. 설정을 변경할 때는 sudo systemctl reload nginx를 사용하여 다운타임 없이 변경 사항을 반영하는 것이 중요합니다. NGINX 상태를 모니터링하려면 systemctl status nginx.service 명령어를 사용하여 모든 것이 제대로 실행되고 있는지 확인할 수 있습니다. Ubuntu 24.04에서 NGINX를 설정하는 분들에게는 이 NGINX 설치 가이드를 꼭 참고하시길 추천합니다. 저도 이 가이드를 통해 환경을 설정하는 데 많은 도움이 되었습니다!

https://docs.vultr.com/how-to-install-nginx-web-server-on-ubuntu-24-04

답글 달기
comment-user-thumbnail
2025년 1월 12일

"Great article! I had trouble getting Nginx to run after a config change. Once I fixed the syntax error, everything worked fine. If you're setting up Moodle on Ubuntu 22.04 with Nginx, check out this guide, it helped me resolve my issues."

답글 달기