Nginx 启动失败,提示nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) 错误:

Nginx启动报错 98: Address already in use

出现以上错误,一般都是服务器的80端口被占用,这时查看 nginx情况如下:

ps -ef|grep nignx

Nginx启动报错 98: Address already in use

上面显示没正常启动。可使用sudo fuser -k 80/tcp 命令杀掉使用80端口的程序 再重启nginx测试

Nginx启动报错 98: Address already in use

测试nginx状态

Nginx启动报错 98: Address already in use