• EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Esta tradução de máquina é fornecida para sua comodidade.

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.

Criar um problema

Iniciar, parar e reiniciar o agente de infraestrutura

O agente de infraestrutura é iniciado automaticamente após a execução do script de instalação. No entanto, há situações em que pode ser necessário reiniciar manualmente o agente (por exemplo, após alterar a configuração do agente).

Quer experimentar nosso agente de infraestrutura? Crie uma conta New Relic gratuitamente! Não é necessário cartão de crédito.

Linux

Para Linux, certifique-se de usar o comando correto para seu sistema init. Selecione start, stop, restart ou status conforme apropriado:

  • SystemD (Amazon Linux 2, SLES 12, CentOS 7 ou superior, Debian 8 ou superior, RHEL 7 ou superior, Ubuntu 15.04 ou 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 ou inferior):

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

Windows

Importante

Para iniciar, parar ou reiniciar o agente, você deve executar cmd.exe ou PowerShell como Administrator.

Para o Windows Server, você pode usar o prompt de comando do Windows ou o PowerShell.

prompt de comando (cmd.exe)

  • Inicie ou pare o agente do Windows:

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

    bash
    $
    net stop newrelic-infra ; net start newrelic-infra
  • Verifique o status do agente do Windows:

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

PowerShell

  • Inicie ou pare o agente do Windows:

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

    Dica

    Você também pode usar net start|stop newrelic-infra

  • Reinicie o agente do Windows:

    bash
    $
    Restart-Service newrelic-infra
  • Verifique o status do agente do Windows:

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

Mac OS

  • Pare ou inicie o agente:

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

    bash
    $
    brew services restart newrelic-infra-agent
  • Verifique o status do agente:

    bash
    $
    brew services list

Personalizar o registro do agente

O agente de infraestrutura registra em um local padrão que depende da sua plataforma. Você pode personalizar esse local com a configuração log_file . Você também pode gerar log detalhado para resolução de problemas.

Determine seu sistema de inicialização

Para o Windows Server, os comandos neste documento usam o prompt de comando do Windows.

Para Linux, o agente de infraestrutura seleciona um sistema init apropriado para sua distribuição:

Distribuição

SystemD

Sistema V

Subir na vida

Amazon Linux

Amazon Linux 2

CentOS 7

CentOS 8

Debian 7 ("Wheezy")

Debian 8 ("Jessie")

Debian 9 ("Estiramento")

RHEL 5

RHEL 6

RHEL 7

RHEL 8

Ubuntu, 14.04 ou inferior

Ubuntu, 16.04 ou superior

LES 12

LES 11

Ferramentas de gerenciamento de configuração

Para gerenciar o agente de infraestrutura com sua ferramenta de gerenciamento de configuração, consulte:

Copyright © 2024 New Relic Inc.

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