"killall nginx; sleep 3; killall -9 nginx" would also work
On Thu, 09 Aug 2012 01:09:34 -0000 Thaddeus Albers <email address hidden> wrote:
> Thanks for the fix. > > Note for others: > If you see the following during install... > > Setting up nginx-full (1.2.3-0ubuntu0ppa3~lucid) ... > Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address > already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address > already in use) nginx: [emerg] still could not bind() > nginx. > > and start & restart don't work... > $sudo /etc/init.d/nginx start > Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address > already in use) $sudo /etc/init.d/nginx restart > Restarting nginx: nginx. > nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) > > Just get the nginx worker process ids and then kill them. > > for example: > $ ps aux | grep nginx > www-data 4619 0.0 0.2 10584 1340 ? S 18:51 0:00 nginx: > worker process www-data 4620 0.0 0.2 10584 1340 ? S 18:51 > 0:00 nginx: worker process www-data 4621 0.0 0.2 10584 1340 ? > S 18:51 0:00 nginx: worker process > > $ kill -9 4619 4620 4621 > > Hope that helps anyone with this problem.
"killall nginx; sleep 3; killall -9 nginx" would also work
On Thu, 09 Aug 2012 01:09:34 -0000
Thaddeus Albers <email address hidden> wrote:
> Thanks for the fix. 0ubuntu0ppa3~ lucid) ...
>
> Note for others:
> If you see the following during install...
>
> Setting up nginx-full (1.2.3-
> Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address
> already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address
> already in use) nginx: [emerg] still could not bind()
> nginx.
>
> and start & restart don't work...
> $sudo /etc/init.d/nginx start
> Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address
> already in use) $sudo /etc/init.d/nginx restart
> Restarting nginx: nginx.
> nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
>
> Just get the nginx worker process ids and then kill them.
>
> for example:
> $ ps aux | grep nginx
> www-data 4619 0.0 0.2 10584 1340 ? S 18:51 0:00 nginx:
> worker process www-data 4620 0.0 0.2 10584 1340 ? S 18:51
> 0:00 nginx: worker process www-data 4621 0.0 0.2 10584 1340 ?
> S 18:51 0:00 nginx: worker process
>
> $ kill -9 4619 4620 4621
>
> Hope that helps anyone with this problem.