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

前端 未结 18 1390
醉酒成梦
醉酒成梦 2020-11-28 17:36

All of a sudden I am getting the below nginx error

 * Restarting nginx
 * Stopping nginx nginx
   ...done.
 * Starting nginx nginx
nginx: [emerg] bind() to [         


        
18条回答
  •  心在旅途
    2020-11-28 18:09

    My issue was that I had overlapping listen directives. I have managed to figure out overlapping directives by running

    grep -r listen /etc/nginx/*
    

    Two files were listening at the same port:

    /etc/nginx/conf.d/default.conf:           listen 80;  
    /etc/nginx/sites-enabled/default.conf:    listen 80;
    

提交回复
热议问题