LINUX

CentOS 7에서 fuser 설치 및 사용법 (nginx 0.0.0.0:80 trouble shooting)

Remoted remoted 2021. 7. 23. 20:26

 

 

CentOS 7 Light Package no included in fuser library package. 

 

# yum -y install psmisc
# fuser -k 80/tcp

fuser 로 Nginx 에서 기본적으로 잡고있던 80과 443을 다 죽이고 난 후에 

nginx 를 restart 하면 trouble shooting 완료

 

 

 

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

 

If you get following error, when you try to start nginx…

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

Then it means nginx or some other process is already using port 80.

 

You can kill it using:

 

sudo fuser -k 80/tcp

 

And then try restarting nginx again:

 

service nginx start