CS/웹
-
nginx - fcgiCS/웹 2023. 12. 26. 00:20
서블리을 사용하기 전에 사용했던 cgi 형태의 통신은 어떻게 작동했는지 확인해보는 글 입니다. cgi보다 개선된 fcgi를 사용하였습니다. nginx 설치 $ brew nginx /opt/homebrew/etx/nginx에 설치된다. /opt/homebrew/etx/nginx경로의 conf파일을 수정해야된다. nginx 실행 $ brew services start nginx $ brew services stop nginx 하지만 nginx 키워드로도 가능 $ nginx $ nginx -s stop $ nginx -s reload root 설정 /opt/homebrew/etx/nginx경로의 conf파일을 수정해야된다. 서버 scope 속에서 root 경로 설정 가능하다. 서버 scope 에서 root 설..
-
정적 웹서버에서 MVC까지CS/웹 2023. 12. 26. 00:10
1. 초기의 서버 왜 웹을 쓰는가? 1. 컴퓨터하나에 모든 정보를 담기에는 정보의 양도 많고 복잡도 증가 2. 원격지에 있는 정보를 가져와서 보고 싶음 그럼 서버가 뭐야? 1. 클라이언트가 요청하는 자료를 전달하는 프로그램 클라이언트는 자료가 있는 컴퓨터의 ip로 요청을 한다. 서버는 요청이 들어오면 자기 컴퓨터의 저장매체에서 해당 자료를 찾는다. 해당 자료를 읽어서 응답을 보내준다. html 혹은 파일 주요 서버 프로그램들은 뭐가잇어? 1. CERN httpd - 연구원 간의 자료 공유로 목적으로 시작 2. apache - 90 중반등장, 오픈 소스로 커뮤니티의 지원으로 가장 보편화 (프로세스 기반) 3. nginx - 00 이후 등장 (이벤트 기반 아키텍쳐) 클라이언트 요청의 다양성, 복잡성 증가 1..