V
V
Vladimir Revyakin2016-09-26 02:28:04
Nginx
Vladimir Revyakin, 2016-09-26 02:28:04

Can't restart NGINX?

nginx gives error when restarting

Sep 26 00:42:00 CentOS-72-64-minimal nginx[11230]: nginx: [emerg] bind() to 0.0.0.0:25 failed (98: Address already in use)
CentOS-72-64-minimal nginx [11230]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
CentOS-72-64-minimal nginx[11230]: nginx: [emerg] bind() to 0.0. 0.0:443 failed (98: Address already in use) CentOS
-72-64-minimal nginx[11230]: nginx: [emerg] bind() to
-64-minimal nginx[11230]: nginx: [emerg] bind() to 0.0.0.0:25 failed (98: Address already in use)
CentOS-72-64-minimal nginx[11230]: nginx: [emerg] still could not bind()
CentOS-72-64-minimal systemd[1]: nginx.service: control process exited, code=exited status=1
CentOS-72-64-minimal systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
CentOS-72-64-minimal systemd[1]: Unit nginx.service entered failed state.
CentOS-72-64-minimal systemd[1]: nginx.service failed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romy4, 2016-09-26
@jonimuesli

under the root netstat -ntlpand see who occupied the ports.
you can stop nginx, but you can't start it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question