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

created at 03-31-2022 views: 4

problem

After upgrading the server, it cannot be restarted, and nginx reported the following error:

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

solution

This situation is: port 80 is occupied.

Execute the following command:

fuser -k 80/tcp

Then execute the restart nginx command:

systemctl restart nginx.service

or execute

/usr/local/nginx/sbin/nginx -s reload
Please log in to leave a comment.
user image

test

 |  Reply
Please log in to reply.