Starting nginx: nginx: [emerg] bind() to 1.2.3.4:80 failed (99: Cannot assign requested address) [FAILED]


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » CustomBuild » CustomBuild 2.0 » Nginx

Starting nginx: nginx: [emerg] bind() to 1.2.3.4:80 failed (99: Cannot assign requested address) [FAILED]Last Modified: Aug 31, 2017, 2:08 pm
If you're trying to start nginx, but it throws this error:

Starting nginx: nginx: [emerg] bind() to 1.2.3.4:80 failed (99: Cannot assign requested address)    [FAILED]

it would likely mean that the IP in question does not exist in your device.  Type the following to see which IPs are in your device:

/sbin/ifconfig

If your network was restarted, type:

service startips start


If, for whatever reason, the IPs cannot be loaded into the device but you must still have that IP in the nginx config, then you can set:

net.ipv4.ip_nonlocal_bind = 1

into your /etc/sysctl.conf file, and reboot.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST