본문 바로가기

정리중인 카테고리/전공 기술

[리눅스] 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: Address already in use)                                    
   nginx: [emerg] still could not bind()                                                                                 



해당 문제는 시스템 데몬의 불완전 동작으로 인하여 발생하는 로깅문 입니다.

위와 같은 로그를 뿜을경우 아래의 명령어를 실행해 줍니다.



sudo fuser -k 80/tcp

sudo fuser -k 443/tcp