카테고리 없음

우분투 20.04LTS에서 nginx 설치

Zero_To_One 2022. 2. 25. 08:33

https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source

 

Installing NGINX Open Source | NGINX Plus

Installing NGINX Open Source Install NGINX Open Source either as a prebuilt package or from source, following step-by-step instructions for all supported Linux distributions. This article explains how to install NGINX Open Source. Choosing Between a Stab

docs.nginx.com

VersionCodenameSupported Platforms

16.04 xenial x86_64, i386, ppc64el, aarch64/arm64
18.04 bionic x86_64, aarch64/arm64
19.10 eoan x86_64
20.04 focal x86_64, aarch64/arm64

20.04 버전에서는 

deb https://nginx.org/packages/mainline/ubuntu/ <CODENAME> nginx
deb-src https://nginx.org/packages/mainline/ubuntu/ <CODENAME> nginx

<CODENAME>을 focal로 바꿔주면 된다.

 

 

2. bind() error 해결법

> sudo nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

sudo fuser -k 80/tcp

sudo fuser -k 443/tcp 

 

https://pilgoo.tistory.com/69

 

[리눅스] NGINX - bind() 문제 발생시 해결법.

   nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)  nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)  nginx: [emerg] bind() to [::]:80 failed (98..

pilgoo.tistory.com