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

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

    To follow on to @lfender6445 and @SAURABH answers --

    My problem was also the fact that after upgrading to Vagrant 2.2.2 Apache2 was running as a web server when the guest booted. In the past I only had nginx as a web server.

    vagrant ssh into the box and run the following command to disable Apache2 from starting up whenever the guest box boots:

    sudo update-rc.d -f apache2 remove
    

    Exit ssh, vagrant halt, vagrant up. Problem solved.

提交回复
热议问题