일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 프로세스 종료
- web
- 스레드
- 오라클 trunc()
- cpu
- trunc()
- 오라클 버림 함수
- Servlet
- ArrayList
- 정렬
- queue
- Git
- 멀티스레드
- 스케줄 삭제
- heap
- maven
- url
- null
- HDD
- git push
- stack
- desc
- trunc(sysdate)
- trunc(date)
- netstat
- MAP
- HashMap
- RAM
- 이진탐색트리
- ssd
- Today
- Total
無테고리 인생살이
Nginx 실행 에러 해결 (Failed to start A high performance web server and a reverse proxy server - Address family not supported by protocol) 본문
Nginx 실행 에러 해결 (Failed to start A high performance web server and a reverse proxy server - Address family not supported by protocol)
無격 2023. 9. 29. 14:24◈ 목차
- 문제 발생 과정
- 에러 로그 확인 -> 발생 에러 확인
- 원인
- 해결 방법
# 문제 발생 과정
Nginx 설치 후 실행 중..

Failed to start A high performance web server and a reverse proxy server
메시지와 함께 nginx 실행 실패
# 에러 로그 확인 -> 발생 에러 확인
1. error.log 파일 위치 확인

2. 에러 로그 확인

발생 에러 : nginx:[emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
# 원인
해당 우분투 서버는 IPv6 비활성화 상태이지만, nginx는 IPv6 address인 '[::]:80' 사용을 시도해 발생하는 에러입니다.
# 해결 방법
: Nginx 설정 파일에서 IPv6 비활성화
1. /etc/nginx/sites-enabled/default 편집기 실행
vim /etc/nginx/sites-enabled/default
2. 아래 부분 주석처리
listen [::]:80 default_server;
3. Nginx 재시작
service nginx restart
4. 확인
service nginx status

참고 :
https://techglimpse.com/nginx-error-address-family-solution/
Nginx Error: [::1]:80 failed: Address family not supported by protocol [Solved] - Techglimpse
This tutorial will provide a solution for the nginx error on address family not supported by protocol. Learn how to disable IPv6 support for Nginx.
techglimpse.com
'gift-card-flea-market' 카테고리의 다른 글
MySQL Replication으로 DB 이중화하기 (feat. mysql replication 동작방식) (0) | 2023.09.21 |
---|---|
static 필드에 @Value가 동작하지 않는 이유 (2) | 2023.08.01 |
서버 재부팅시, redis-server inactive(dead) 상태인 문제 해결 (0) | 2023.06.28 |
MySQL 테이블에 한글 insert 실패 원인와 해결 방법 (feat. Incorrect string value : '\xEC..) (0) | 2023.06.24 |
Ubuntu 원격 서버에 MySQL 서버 설치 & 외부에서 Workbench로 DB 접속 (0) | 2023.06.23 |