• /
  • EnglishEspañolFrançais日本語한국어Português
  • Se connecterDémarrer

Cette traduction automatique est fournie pour votre commodité.

En cas d'incohérence entre la version anglaise et la version traduite, la version anglaise prévaudra. Veuillez visiter cette page pour plus d'informations.

Créer un problème

Démarrer, arrêter et redémarrer l'agent d'infrastructure

L'agent d'infrastructure démarre automatiquement après l'exécution du script d'installation. Cependant, il existe des situations dans lesquelles vous devrez peut-être redémarrer manuellement l'agent (par exemple, après avoir modifié la configuration de votre agent).

Vous souhaitez tester notre agent d'infrastructure ? Créez un compte New Relic gratuitement ! Aucune carte de crédit requise.

Linux

Pour Linux, assurez-vous d'utiliser la commande correcte pour votre système d'initialisation. Sélectionnez start, stop, restart ou status selon le cas :

  • SystemD (Amazon Linux 2, SLES 12, CentOS 7 ou supérieur, Debian 8 ou supérieur, RHEL 7 ou supérieur, Ubuntu 15.04 ou supérieur) :

    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 version antérieure) :

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

Windows

Important

Pour démarrer, arrêter ou redémarrer l'agent, vous devez exécuter cmd.exe ou PowerShell en tant que Administrator.

Pour Windows Server, vous pouvez utiliser l’invite de commande Windows ou PowerShell.

invite de commande (cmd.exe)

  • Démarrer ou arrêter l’agent Windows :

    bash
    $
    net <start|stop> newrelic-infra
  • Redémarrez l’agent Windows :

    bash
    $
    net stop newrelic-infra ; net start newrelic-infra
  • Vérifiez l’état de l’agent Windows :

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

PowerShell

  • Démarrer ou arrêter l’agent Windows :

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

    Conseil

    Vous pouvez également utiliser net start|stop newrelic-infra

  • Redémarrez l’agent Windows :

    bash
    $
    Restart-Service newrelic-infra
  • Vérifier l’état de l’agent Windows :

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

macOS

  • Arrêter ou démarrer l'agent :

    bash
    $
    brew services stop newrelic-infra-agent
    $
    brew services start newrelic-infra-agent
  • Redémarrer l'agent :

    bash
    $
    brew services restart newrelic-infra-agent
  • Vérifier le statut de l'agent :

    bash
    $
    brew services list

Personnaliser le log de l'agent

L'agent infrastructure se connecte à un emplacement par défaut qui dépend de votre plateforme. Vous pouvez personnaliser cet emplacement avec le paramètre log_file . Vous pouvez également générer un log détaillé pour le dépannage.

Déterminez votre système d'initialisation

Pour Windows Server, les commandes de ce document utilisent l’invite de commande Windows.

Pour Linux, l’agent d’infrastructure sélectionne un système d’initialisation adapté à votre distribution :

Distribution

Système D

système V

Parvenu

Amazon Linux

Amazon Linux 2

CentOS 7

CentOS 8

Debian 7 (« Wheezy »)

Debian 8 (« Jessie »)

Debian 9 (« Stretch »)

RHEL 5

RHEL 6

RHEL 7

RHEL 8

Ubuntu, 14.04 ou version antérieure

Ubuntu, 16.04 ou supérieur

SLES 12

SLES 11

Outils de gestion de la configuration

Pour gérer l’agent d’infrastructure avec votre outil de gestion de configuration, consultez :

Droits d'auteur © 2025 New Relic Inc.

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