nginx bind failed: Cannot assign requested address

Created:

2016-11-16 13:03:57 UTC

Modified:

2017-08-16 16:15:48 UTC

13

Was this article helpful?


Have more questions?

Enviar una solicitud

nginx bind failed: Cannot assign requested address

Applicable to:

  • Plesk for Linux

Síntomas

No es posible iniciar nginx debido al siguiente mensaje de error:

nginx: [emerg] bind() to [2a03:3880:2a00:0:20c:29ff:fe5e:cbc8]:80 failed (99: Cannot assign requested address)

Asimismo, tampoco se puede activar nginx :

# /usr/local/psa/admin/bin/nginxmng -e
[2015-12-04 16:33:47] ERR [util_exec] proc_close() failed
[2015-12-04 16:33:50] ERR [panel] Apache config (14492432250.75591700) generation failed: Template_Exception: nginx: [emerg] bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] bind() to [2001:db8:f61:a1ff:0:0:0:80]:80 failed (99: Cannot assign requested address)
nginx: configuration file /etc/nginx/nginx.conf test failed

Causa

La dirección IPv6 no está debidamente sincronizada entre Plesk y el SO.

Resolución

  1. Sincronice las direcciones IP entre Plesk y el SO:
    Vaya a Herramientas y configuración -> Direcciones IP -> Volver a leer IP y seleccione Reparar .
  2. Defina NGINX_ENABLED=yes en /etc/sysconfig/nginx
  3. Inicie nginx
    service nginx start
    1. Vuelva a crear las configuraciones de los sitios

      /usr/local/psa/admin/bin/httpdmng --reconfigure-all

¿Tiene más preguntas? Enviar una solicitud
Inicie sesión para dejar un comentario.