Agent 설치

Prev Next

설명

Agent 설치

서버 로그 수집 설정을 한 뒤, 실제로 서버의 로그를 수집 하기 위해서는 해당 서버에 접속해 agent를 설치해야 합니다.

agent 설치는 API 호출 결과에 나오는 result를 configKey로 사용하며 agent를 설치하기 위해서는 다음과 같은 명령어를 서버에서 실행하면 됩니다.

Classic Linux 서버

curl -s http://ccm.gov-ncloud.com/setUpCla/{configKey} | sudo sh

VPC Linux 서버

curl -s http://vccm.gov-ncloud.com/setUpClaVPC/{configKey} | sudo sh

Classic Windows 서버

Invoke-Expression $((New-Object System.Net.WebClient).DownloadString("http://ccm.gov-ncloud.com/setUpwinCla/{configKey}"))

VPC Windows 서버

Invoke-Expression $((New-Object System.Net.WebClient).DownloadString("http://vccm.gov-ncloud.com/setUpwinClaVPC/{configKey}"))