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

前端 未结 18 1405
醉酒成梦
醉酒成梦 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:08

    i fixed this by running sudo apachectl stop - turns out apache was running in the background and prevented nginx from starting on the desired port.

    On ubuntu run sudo /etc/init.d/apache2 stop

提交回复
热议问题