{"id":20136112,"url":"https://github.com/zkfmapf123/nginx-essential","last_synced_at":"2026-02-03T15:33:31.968Z","repository":{"id":235720584,"uuid":"630512784","full_name":"zkfmapf123/nginx-essential","owner":"zkfmapf123","description":"nginx essential for me","archived":false,"fork":false,"pushed_at":"2023-10-21T12:06:48.000Z","size":1029,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T01:04:37.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkfmapf123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-20T14:40:17.000Z","updated_at":"2023-04-20T14:40:18.000Z","dependencies_parsed_at":"2024-04-24T12:10:39.648Z","dependency_job_id":"dd650e84-12f0-4bea-a34e-d14977d9e35d","html_url":"https://github.com/zkfmapf123/nginx-essential","commit_stats":null,"previous_names":["zkfmapf123/nginx-essential"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zkfmapf123/nginx-essential","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fnginx-essential","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fnginx-essential/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fnginx-essential/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fnginx-essential/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkfmapf123","download_url":"https://codeload.github.com/zkfmapf123/nginx-essential/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fnginx-essential/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:19:55.533Z","status":"ssl_error","status_checked_at":"2026-02-03T15:13:09.723Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T21:17:45.840Z","updated_at":"2026-02-03T15:33:31.942Z","avatar_url":"https://github.com/zkfmapf123.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx\n\n## Before Read\n\n- Need Linux Environment (https://github.com/zkfmapf123/devops-ec2-docker)\n- Download Nginx MainLine Version\n\n```\n    wget https://nginx.org/download/nginx-x.xx.x.tar.gz\n    tar -zxvf nginx-x.xx.x\n    cd nginx-x.xx.x\n\n    // need compiler\n    sudo apt-get install build-essential\n\n    // need PCRE library\n    sudo apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev\n\n    // cd nginx-x.xx.x\n    ./configure --sbin-path=/usr/bin/nginx \\\n    --conf-path=/etc/nginx/nginx.conf \\\n    --error-log-path=/var/log/nginx/error.log \\\n    --http-log-path=/var/log/nginx/access.log \\\n    --with-pcre --pid-path=/var/run/nginx.pid\n\n    make\n    make install or sudo make install\n\n    ls -l /etc/nginx\n    nginx -v\n```\n\n## NginX\n\n- ./configure\n  - 구성옵션 설정\n  - 사용자의 빌드 옵션에 맞춰서 수정가능\n\n## Install\n\n```\n    // in linux or ubuntu server\n\n    sudo apt-get install nginx\n```\n\n## Configure-file\n\n- nginx.service -\u003e nginx 에서 systemd를 사용하기 위한 설정파일\n\n## Nginx vs Apache\n\n- Apache\n\n  - 클라이언트 요청마다 새로운 프로세스나 스레드를 생성하는 멀티프로세스 아키텍처 사용\n  - 모듈 유연 + 확장성 -\u003e 다양한 모듈을 사용하여 확장성을 높일 수 있음\n  - 프로세스와 스레드 생성 -\u003e 메모리 사용량 올라감\n  - 많은 요청 시 -\u003e 성능 저하\n  - 정적인 콘텐츠를 처리 + 대규모 시스템 (안정성, 확장성) -\u003e 동시접속자가 많은 경우에는 성능저하가 일어날 수 있음 (트래픽)\n  - Reverse Proxy, Load Balacing, Caching 기능 존재하나 nginx보다 미비\n\n- Nginx\n  - 단일 프로세스 또는 스레드처리 -\u003e 이벤트기반 아키텍처\n  - 메모리 절약, 동시에 처리 -\u003e 연결수가 더 많음\n  - 비동기 I/O 사용 -\u003e 요청대기시간 짧고, 높은 처리량\n  - Revese Proxy, Load Balancing, Caching -\u003e 적은 메모리로 대규모 트래픽 처리 가능\n  - 동적인 콘텐츠 + 부하분산이 필요한 대규모 트래픽 시스템\n\n## HTTP Stress test\n\n```\n    // client\n    ab -n 10000 [uri]\n\n    // server\n    sudo apt-get install iftop\n    sudo iftop -i eth0\n```\n\n## Reference\n\n\u003cp\u003e\u003ca href=\"https://nginx-playground.wizardzines.com\"\u003enginx playground\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://nginx.org/en/download.html\"\u003enginx org\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://www.nginx.com/resources/wiki/start/topics/examples/systemd/\"\u003enginx systemd 사용 문서\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fnginx-essential","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkfmapf123%2Fnginx-essential","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fnginx-essential/lists"}