Solve the problem of port being occupied when starting Nginx

888u

Last update at :2024-07-02,Edit by888u

When Snail tested the installation of LEMP today and needed to install and start Nginx, there was a prompt \\"Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address alre\\" Error message.

This problem is caused by Nginx port 80 being occupied.

fuser -n tcp 80

To see what is occupied, you can also use netstat -ntpl to see who is occupied, and then KILL the occupied PID

Then delete the process via kill -9

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

Recommended site searches: registered domain name, proxy IP address, Chinese domain name query, shopex space, domain name space purchase, godaddy space, Zhenjiang high-defense server, Korean cheap server, station group server rental, cloud server rental,

Solve the problem of port being occupied when starting Nginx

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码