기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
CodeDeploy 에이전트가 실행 중인지 확인
이 섹션에서는 CodeDeploy 에이전트가 인스턴스에서 실행을 중지한 것으로 의심되는 경우 실행할 명령을 설명합니다.
주제
Amazon Linux용 CodeDeploy 에이전트 또는 가 실행 RHEL 중인지 확인
CodeDeploy 에이전트가 설치되어 실행 중인지 확인하려면 인스턴스에 로그인하고 다음 명령을 실행합니다.
systemctl status codedeploy-agent
명령이 오류를 반환하면 CodeDeploy 에이전트가 설치되지 않은 것입니다. Amazon Linux용 CodeDeploy 에이전트 설치 또는 RHEL의 설명에 따라 설치합니다.
CodeDeploy 에이전트가 설치되어 실행 중인 경우 와 같은 메시지가 표시됩니다The AWS CodeDeploy agent is running
.
"error: No AWS CodeDeploy agent
running
"와 같은 메시지가 표시되면 서비스를 시작하고 다음 두 명령을 한 번에 하나씩 실행합니다.
systemctl start codedeploy-agent
systemctl status codedeploy-agent
Ubuntu Server의 CodeDeploy 에이전트가 실행 중인지 확인
CodeDeploy 에이전트가 설치되어 실행 중인지 확인하려면 인스턴스에 로그인하고 다음 명령을 실행합니다.
systemctl status codedeploy-agent
명령이 오류를 반환하면 CodeDeploy 에이전트가 설치되지 않은 것입니다. Ubuntu Server용 CodeDeploy 에이전트 설치의 설명에 따라 설치합니다.
CodeDeploy 에이전트가 설치되어 실행 중인 경우 와 같은 메시지가 표시됩니다The AWS CodeDeploy agent is running
.
"error: No AWS CodeDeploy agent
running
"와 같은 메시지가 표시되면 서비스를 시작하고 다음 두 명령을 한 번에 하나씩 실행합니다.
systemctl start codedeploy-agent
systemctl status codedeploy-agent
Windows Server용 CodeDeploy 에이전트가 실행 중인지 확인
CodeDeploy 에이전트가 설치되어 실행 중인지 확인하려면 인스턴스에 로그인하고 다음 명령을 실행합니다.
powershell.exe -Command Get-Service -Name codedeployagent
다음과 유사한 출력 화면이 표시되어야 합니다.
Status Name DisplayName ------ ---- ----------- Running codedeployagent CodeDeploy Host Agent Service
명령이 오류를 반환하면 CodeDeploy 에이전트가 설치되지 않은 것입니다. Windows Server용 CodeDeploy 에이전트 설치의 설명에 따라 설치합니다.
Status
에 Running
이외의 다른 상태가 표시되면 다음 명령을 사용해 서비스를 시작합니다.
powershell.exe -Command Start-Service -Name codedeployagent
다음 명령을 사용하여 서비스를 시작할 수 있습니다.
powershell.exe -Command Restart-Service -Name codedeployagent
다음 명령을 사용하여 서비스를 중지할 수 있습니다.
powershell.exe -Command Stop-Service -Name codedeployagent