nginx does not start automatically, what have I done?
Maxim Dounin
mdounin at mdounin.ru
Fri Feb 17 11:30:37 UTC 2023
Hello!
On Thu, Feb 16, 2023 at 03:13:59PM +0000, nginx at onekarlo.com wrote:
> Thanks for replying. I appreciate the thorough response!
> I found the solution online.
> And it worked!
>
> nano /etc/sysctl.conf # allow processes to bind to the non-local address net.ipv4.ip_nonlocal_bind = 1
> sysctl -p /etc/sysctl.conf
>
> What do you think about it?
It should work around the issue, though the obvious downside is
that the whole system will not be able to detect real errors, such
as mistyped local addresses.
A better solution might be to ensure proper startup order. This
should also fix other potential issues, such as non-working DNS
resolution during nginx startup.
On the other hand, if it works for you, it's probably good enough.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list