nginx won't start after server reboot

Started by PRR, March 05, 2023, 04:54:07 PM

Previous topic - Next topic

PRR

I was having this issue about nginx won't start after server reboot.
Running CentOS 8 Stream with latest CWP Control Panel software.
Couldn't find any help in CWP Forums.
Here is how I fixed that issue by searching Google.

1.nginx error.log was:
nginx bind xxx.xxx.xxx.xx failed (99: Cannot assign requested address)

2. Need to edit:
/etc/sysctl.conf

Add:
net.ipv4.ip_nonlocal_bind = 1

3. Reload systctl:
sysctl -p /etc/sysctl.conf

Now after rebooting server, nginx loads fine..

:)

overseer

But did you fix this problem:
Quote from: PRR on March 05, 2023, 04:54:07 PM
Running CentOS 8 Stream with latest CWP Control Panel software.