Sever
-
Server , Program , Apache 의 관계Sever 2023. 12. 7. 11:29
- 선임분이 설명을 위해 그려주셨다. 1. 서버에서 프로그램이 실행되는 과정 - 웹 서버의 경우, 요청을 처리하기 위한 동적인 부분 (프로그램 / DB연동 등) 을 처리하기 위해서 Frame Work를 올린다 이 때, Frame Work 또는 Program은 서버의 Port 한 부분을 차지한다. 2. Apache 또는 Nginx (엔진엑스 라고 읽음) 를 사용하는 이유 - Dynamic Program Layer에 속하는 프로그램들은 정적인 파일을 처리하는데 특화되어있지 않기 때문에 효율이 좋지 않다 (많은 리소스를 차지하게 된다) 이를 보완하기 위해서 Apache나 Nginx가 정적인 파일을 처리해주고, Reverse Proxy를 통해 Dynamic Program과 User 사이의 연결고리 역할을 한다...