nginx

emerg]: bind() – sometimes after edit nginx configuration this error will show up. Don’t panic, this error happen because port for new configuration still in charge. In another world it means nginx or some other process is already using port 80. Code in this error show in (98: Address already in use) code.

You can kill it using:

sudo fuser -k 80/tcp

Loading...

And then try restarting nginx again:

service nginx start

simple it.

but if you face fuser command not found you can follow this step

0/5 (0 Reviews)

1 COMMENT

  1. […] adding new configuration must be restart before nginx executed them. This is another differences nginx and apache web server. see another article about error in nginx restart in this […]

LEAVE A REPLY

Please enter your comment!
Please enter your name here