问题描述
在this tutorial之后,我使用所需的脚本创建了实例。但是,当我弯腰跑步时
sudo service codedeploy-agent status
我遇到了错误
重定向到/ bin / systemctl状态代码deploy-agent.service
找不到单位codedeploy-agent.service。
该如何解决?
解决方法
如果我使用Amazon Linux 2创建了实例,请ssh并运行
sudo service codedeploy-agent status
然后会得到错误
重定向到/ bin / systemctl状态代码deploy-agent.service
找不到单位codedeploy-agent.service。
为了修复它,创建了一个新实例,但是这次确保使用Amazon Linux。
现在,运行时
sudo service codedeploy-agent status
我得到以下结果
AWS CodeDeploy代理以PID 2780的身份运行