• EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Te ofrecemos esta traducción automática para facilitar la lectura.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

Crea una propuesta

Iniciar, detener y reiniciar el agente de infraestructura

El agente de infraestructura se inicia automáticamente después de ejecutar el script de instalación. Sin embargo, hay situaciones en las que es posible que necesite reiniciar manualmente el agente (por ejemplo, después de cambiar la configuración del agente).

¿Quieres probar nuestro agente de infraestructura? ¡ Crea una cuenta New Relic gratis! No se requiere tarjeta de crédito.

Linux

Para Linux, asegúrese de utilizar el comando correcto para su sistema de inicio. Seleccione start, stop, restart o status según corresponda:

  • SystemD (Amazon Linux 2, SLES 12, CentOS 7 o superior, Debian 8 o superior, RHEL 7 o superior, Ubuntu 15.04 o superior):

    bash
    $
    sudo systemctl <start|stop|restart|status> newrelic-infra
  • System V (Debian 7, SLES 11.4, RHEL 5):

    bash
    $
    sudo /etc/init.d/newrelic-infra <start|stop|restart|status>
  • Upstart (Amazon Linux, RHEL 6, Ubuntu 14.04 o inferior):

    bash
    $
    sudo initctl <start|stop|restart|status> newrelic-infra

Windows

Importante

Para iniciar, detener o reiniciar el agente, debe ejecutar cmd.exe o PowerShell como Administrator.

Para Windows Server, puede utilizar el símbolo del sistema de Windows o PowerShell.

Símbolo del sistema (cmd.exe)

  • Inicie o detenga el agente de Windows:

    bash
    $
    net <start|stop> newrelic-infra
  • Reinicie el agente de Windows:

    bash
    $
    net stop newrelic-infra ; net start newrelic-infra
  • Verifique el estado del agente de Windows:

    bash
    $
    sc query "newrelic-infra" | find "STATE"

Potencia Shell

  • Inicie o detenga el agente de Windows:

    bash
    $
    Stop-Service -Name "newrelic-infra"
    $
    Start-Service -Name "newrelic-infra"

    Sugerencia

    También puedes usar net start|stop newrelic-infra

  • Reinicie el agente de Windows:

    bash
    $
    Restart-Service newrelic-infra
  • Verifique el estado del agente de Windows:

    bash
    $
    (Get-Service newrelic-infra).Status

Mac OS

  • Detener o iniciar el agente:

    bash
    $
    brew services stop newrelic-infra-agent
    $
    brew services start newrelic-infra-agent
  • Reinicie el agente:

    bash
    $
    brew services restart newrelic-infra-agent
  • Consultar estado del agente:

    bash
    $
    brew services list

Personalizar el registro del agente

El agente de infraestructura inicia sesión en una ubicación predeterminada que depende de su plataforma. Puede personalizar esta ubicación con la configuración log_file . También puede generar un registro detallado para la resolución de problemas.

Determine su sistema de inicio

Para Windows Server, los comandos de este documento utilizan el símbolo del sistema de Windows.

Para Linux, el agente de infraestructura selecciona un sistema de inicio apropiado para su distribución:

Distribución

SystemD

Sistema V

Advenedizo

Amazon Linux

Amazon Linux 2

CentOS 7

CentOS 8

Debian 7 ("Sibilancias")

Debian 8 ("Jessie")

Debian 9 ("Estiramiento")

RHEL 5

RHEL 6

RHEL 7

RHEL 8

Ubuntu, 14.04 o inferior

Ubuntu, 16.04 o superior

SLES 12

SLES 11

Herramientas de gestión de configuración

Para administrar el agente de infraestructura con su herramienta de administración de configuración, consulte:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.