• English
  • 로그인지금 시작하기

인프라 에이전트 시작, 중지 및 다시 시작

인프라 에이전트는 설치 스크립트를 실행한 후 자동으로 시작합니다. 그러나 에이전트를 수동으로 다시 시작해야 하는 상황이 있습니다. (예: 에이전트 구성 변경 후)

인프라 에이전트를 사용해 보길 원하십니까? 무료로 뉴렐릭 계정을 만드십시오! 신용 카드는 필요하지 않습니다.

Linux: 시작, 중지, 다시 시작 또는 에이전트 상태 확인

Linux의 경우 init 시스템에 올바른 명령을 사용했는지 확인합니다. start, stop, restart 또는 status를 적절하게 선택합니다.

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

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

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

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

Windows: 시작, 중지, 다시 시작 또는 에이전트 상태 확인

중요

에이전트를 시작, 중지 또는 다시 시작하려면 cmd.exe 또는 PowerShell을 Administrator로 실행해야 합니다.

Windows Server의 경우 Windows 명령 프롬프트 또는 PowerShell을 사용할 수 있습니다.

명령 프롬프트(cmd.exe)

  • Windows 에이전트 시작 또는 중지:

    net <start|stop> newrelic-infra
  • Windows 에이전트 재시작:

    net stop newrelic-infra ; net start newrelic-infra
  • Windows 에이전트의 상태 확인:

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

PowerShell

  • Windows 에이전트 시작 또는 중지:

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

    또한, 다음을 사용할 수 있습니다 net start|stop newrelic-infra

  • Windows 에이전트 재시작:

    Restart-Service newrelic-infra
  • Windows 에이전트 상태 확인:

    (Get-Service newrelic-infra).Status

macOS: 에이전트 상태 시작, 중지, 재시작 또는 확인

  • 에이전트 중지 또는 시작:

    brew services stop newrelic-infra-agent
    brew services start newrelic-infra-agent
  • 에이전트 재시작:

    brew services restart newrelic-infra-agent
  • 에이전트 상태 확인:

    brew services list

에이전트 로그 맞춤화

인프라 에이전트는 플랫폼에 따라 달라지는 기본 위치에 기록합니다. log_file 설정으로 이 위치를 맞춤설정할 수 있습니다. 문제 해결을 위해 verbose 로그를 생성할 수도 있습니다.

init 시스템 결정

Windows Server의 경우, 이 문서의 명령은 Windows 명령 프롬프트를 사용합니다.

Linux의 경우, 인프라 에이전트는 배포에 적합한 초기화 시스템을 선택합니다.

Distribution

SystemD

System V

Upstart

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 이하

Ubuntu, 16.04 이상

SLES 12

SLES 11

구성 관리 툴

구성 관리 툴로 인프라 에이전트를 관리하려면 다음을 참조하십시오.

Copyright © 2023 New Relic Inc.

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