Create a Lightsail instance and install the CodeDeploy agent

前端 未结 1 1086
梦如初夏
梦如初夏 2020-12-22 11:04

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

sudo service codedeploy-agent status
<
相关标签:
1条回答
  • 2020-12-22 11:51

    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

    0 讨论(0)
提交回复
热议问题