Author Topic: nginx won't start after server reboot  (Read 1760 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
nginx won't start after server reboot
« on: March 05, 2023, 04:54:07 PM »
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..

:)

Offline
*****
Re: nginx won't start after server reboot
« Reply #1 on: March 06, 2023, 06:52:11 AM »
But did you fix this problem:
Running CentOS 8 Stream with latest CWP Control Panel software.