Home » , » How to - Solved nginx: [emerg] bind() to 0.0.0.0:80 failed Address already in use

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

Posted by E-Learning on Saturday, September 12, 2015

i will turn on my laptop,
i try to run nginx but i found this problem.
full source :
# service nginx reload
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

# systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
   Active: failed (Result: exit-code) since Sat 2015-09-12 10:47:17 WIB; 17min ago
  Process: 1675 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
  Process: 1616 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)

Sep 12 10:47:15 icelabs nginx[1675]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 12 10:47:15 icelabs nginx[1675]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 12 10:47:16 icelabs nginx[1675]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 12 10:47:16 icelabs nginx[1675]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 12 10:47:17 icelabs nginx[1675]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Sep 12 10:47:17 icelabs nginx[1675]: nginx: [emerg] still could not bind()
Sep 12 10:47:17 icelabs systemd[1]: nginx.service: control process exited, code=exited status=1
Sep 12 10:47:17 icelabs systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Sep 12 10:47:17 icelabs systemd[1]: Unit nginx.service entered failed state.
Sep 12 11:04:38 icelabs systemd[1]: Unit nginx.service cannot be reloaded because it is inactive.

to solved this problem.
run this command :

sudo fuser -k 80/tcp
service nginx start


Hosting Unlimited Indonesia

0 comments:

Donate Bitcoin :
19QsXRcfUEKW9AVbGkJFB6WJPvn6uRboNr