创建一个Lightsail实例并安装CodeDeploy代理 [英] Create a Lightsail instance and install the CodeDeploy agent
问题描述
遵循
现在,运行时
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屋!