

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# CodeDeploy 에이전트가 실행 중인지 확인
<a name="codedeploy-agent-operations-verify"></a>

이 섹션에서는 인스턴스에서 CodeDeploy 에이전트의 실행이 중지되었다고 의심하는 경우 에이전트를 실행하도록 하는 명령에 대해 설명합니다.

**Topics**
+ [Amazon Linux 또는 RHEL용 CodeDeploy 에이전트가 실행 중인지 확인합니다.](#codedeploy-agent-operations-verify-linux)
+ [Ubuntu Server용 CodeDeploy 에이전트가 실행 중인지 확인](#codedeploy-agent-operations-verify-ubuntu)
+ [Windows Server용 CodeDeploy 에이전트가 실행 중인지 확인](#codedeploy-agent-operations-verify-windows)

## Amazon Linux 또는 RHEL용 CodeDeploy 에이전트가 실행 중인지 확인합니다.
<a name="codedeploy-agent-operations-verify-linux"></a>

CodeDeploy 에이전트가 설치되고 실행 중인지 확인하려면 인스턴스에 로그인하여 다음 명령을 실행합니다.

```
systemctl status codedeploy-agent
```

명령이 오류를 반환하면 CodeDeploy 에이전트가 설치되지 않은 것입니다. [Amazon Linux 또는 RHEL용 CodeDeploy 에이전트 설치](codedeploy-agent-operations-install-linux.md)의 설명에 따라 설치합니다.

CodeDeploy 에이전트가 설치되어 실행 중이면 "`The AWS CodeDeploy agent is running`"와 같은 메시지가 표시되어야 합니다.

"`error: No AWS CodeDeploy agent running`"와 같은 메시지가 표시되면 서비스를 시작하고 다음 두 명령을 한 번에 하나씩 실행합니다.

```
systemctl start codedeploy-agent
```

```
systemctl status codedeploy-agent
```

## Ubuntu Server용 CodeDeploy 에이전트가 실행 중인지 확인
<a name="codedeploy-agent-operations-verify-ubuntu"></a>

CodeDeploy 에이전트가 설치되고 실행 중인지 확인하려면 인스턴스에 로그인하여 다음 명령을 실행합니다.

```
systemctl status codedeploy-agent
```

명령이 오류를 반환하면 CodeDeploy 에이전트가 설치되지 않은 것입니다. [Ubuntu Server용 CodeDeploy 에이전트 설치](codedeploy-agent-operations-install-ubuntu.md)의 설명에 따라 설치합니다.

CodeDeploy 에이전트가 설치되어 실행 중이면 "`The AWS CodeDeploy agent is running`"와 같은 메시지가 표시되어야 합니다.

"`error: No AWS CodeDeploy agent running`"와 같은 메시지가 표시되면 서비스를 시작하고 다음 두 명령을 한 번에 하나씩 실행합니다.

```
systemctl start codedeploy-agent
```

```
systemctl status codedeploy-agent
```

## Windows Server용 CodeDeploy 에이전트가 실행 중인지 확인
<a name="codedeploy-agent-operations-verify-windows"></a>

CodeDeploy 에이전트가 설치되고 실행 중인지 확인하려면 인스턴스에 로그인하여 다음 명령을 실행합니다.

```
powershell.exe -Command Get-Service -Name codedeployagent
```

다음과 유사한 출력 화면이 표시되어야 합니다.

```
Status   Name               DisplayName
------   ----               -----------
Running codedeployagent    CodeDeploy Host Agent Service
```

명령이 오류를 반환하면 CodeDeploy 에이전트가 설치되지 않은 것입니다. [Windows Server용 CodeDeploy 에이전트 설치](codedeploy-agent-operations-install-windows.md)의 설명에 따라 설치합니다.

`Status`에 `Running` 이외의 다른 상태가 표시되면 다음 명령을 사용해 서비스를 시작합니다.

```
powershell.exe -Command Start-Service -Name codedeployagent
```

다음 명령을 사용하여 서비스를 시작할 수 있습니다.

```
powershell.exe -Command Restart-Service -Name codedeployagent
```

다음 명령을 사용하여 서비스를 중지할 수 있습니다.

```
powershell.exe -Command Stop-Service -Name codedeployagent
```