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

前端 未结 18 1363
醉酒成梦
醉酒成梦 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条回答
  •  萌比男神i
    2020-11-28 18:06

    My case is different, I had to kill running Nginx to restart it.

    Instead of

    sudo systemctl restart nginx
    

    I had to use:

    sudo pkill -f nginx & wait $!
    sudo systemctl start nginx
    

提交回复
热议问题