320x100
320x100
nginx 컴파일에 필요한 의존성 패키지 설치
apt install -y gcc gcc-c++ wget openssl openssl-devel
nginx 다운로드
// https://nginx.org/download/ 에서 미리 확인
wget https://nginx.org/download/nginx-1.23.1.tar.gz
nginx 압축해제
tar -zxvf nginx-1.23.1.tar.gz
cd nginx-1.23.1/
./configure
// 특정 모듈을 함께 설치 example
./configure
--sbin-path=/usr/local/nginx/nginx
--conf-path=/usr/local/nginx/nginx.conf
--pid-path=/usr/local/nginx/nginx.pid
--with-http_ssl_module
--with-pcre=../pcre2-10.39
--with-zlib=../zlib-1.3
https://nginx.org/en/docs/configure.html
Building nginx from Sources
Building nginx from Sources The build is configured using the configure command. It defines various aspects of the system, including the methods nginx is allowed to use for connection processing. At the end it creates a Makefile. The configure command supp
nginx.org
nginx 설치
make
make install
nginx 실행
cd /usr/local/nginx/sbin
./nginx
ps aux | grep nginx
Reference
Centos7 환경에서 nginx 컴파일 설치 및 systmctl 등록하기
nginx 컴파일 설치하기 1. nginx 설치에 필요한 의존성 패키지 사전 설치 하기 [root@localhost ~]# yum -y install gcc gcc-c++ wget [root@localhost nginx-1.14.0]# yum -y install openssl openssl-devel 2. 필요한 nginx 버전으로 확
talkme.tistory.com
300x250
728x90
'InfraStructure > Nginx' 카테고리의 다른 글
nginx 라우팅 우선순위 (location priority) (0) | 2025.02.02 |
---|---|
nginx 기본적인 보안 설정 (HTTP Header에서의 정보 노출 방지) (0) | 2023.08.12 |
nginx 기초 사용법 (0) | 2023.07.23 |
Nginx와 HAProxy 비교 (0) | 2023.06.17 |