创建一个Lightsail实例并安装CodeDeploy代理 [英] Create a Lightsail instance and install the CodeDeploy agent

查看:114
本文介绍了创建一个Lightsail实例并安装CodeDeploy代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循

现在,运行时

  sudo服务codedeploy-agent状态 

我得到以下结果

AWS CodeDeploy代理以PID 2780的身份运行

While following this tutorial, I created the instance with the desired script. Yet, when I ssh in and run

sudo service codedeploy-agent status

I'm getting the error

Redirecting to /bin/systemctl status codedeploy-agent.service

Unit codedeploy-agent.service could not be found.

What can be done to fix it?

解决方案

If I created the instance using Amazon Linux 2, ssh in and run

sudo service codedeploy-agent status

then would get the error

Redirecting to /bin/systemctl status codedeploy-agent.service

Unit codedeploy-agent.service could not be found.

In order to fix it, created a new instance but this time made sure to be using Amazon Linux.

Now, when running

sudo service codedeploy-agent status

I get the following result

The AWS CodeDeploy agent is running as PID 2780

这篇关于创建一个Lightsail实例并安装CodeDeploy代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆