Focus on cloud service provider activities
Notes on website operation and maintenance

Resolve the problem that the port is occupied when Nginx starts

Today, when Lao Zuo needed to install and start Nginx when testing and installing LEMP, he was prompted with the error message "Starting nginx: nginx: [emergency] bind() to 0.0.0.0:80 failed (98: Address alre".

 NGINX error prompt

This problem is caused by the occupation of Nginx port 80.

fuser -n tcp 80

Check what is occupied, or use netstat - ntpl to check who is occupied, and then KILL the occupied PID

 NGINX-ERR-2

Then delete the process through kill - 9

Finally, start/etc/init.d/nginx.

Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Resolve the problem that the port is occupied when Nginx starts


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge