S
S
Svoboo2016-10-01 17:32:08
Nginx
Svoboo, 2016-10-01 17:32:08

Why might nginx and httpd fail to start at startup?

There is a server on centos 7 with nginx+httpd. After the reboot, nginx and httpd do not automatically start, but if you start them manually, they start normally. They are added to the autorun. What is the reason to look for? In the logs:

[emerg] 417#417: bind() to server_ip:80 failed (99: Cannot assign requested address)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2016-10-01
@alsopub

If there are no startup errors in the logs, then you added them to the wrong autorun.
chkconfig --list what shows in terms of nginx and httpd?

V
Victor, 2016-10-01
@estoy

In centos 7, you need to do this - "systemctl enable nginx, systemctl enable httpd", then autorun will work.

D
Dmitry Aitkulov, 2016-10-03
@Scarfase1989

emerg] 417#417: bind() to server_ip:80
nginx and apache are bound to port 80 by default, if you didn't define them then that's the problem
in general here is a good site for centos 7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question