-bash systemctl command not found

0 votes

Hi Guys,

I am trying to run systemctl command inside EC2 instance. But it is showing me the below error.

[root@ip-172-31-36-29 ~]# systemctl start docker
-bash: systemctl: command not found

How can I solve this error?

Jun 8, 2020 in AWS by akhtar
• 38,210 points

1 answer to this question.

0 votes


I think systemctl command is not supported in your instance. You can use service command instead of systemctl command.

$ service docker start

Hope this will help.

answered Jun 8, 2020 by MD
• 95,300 points
Awesome!!!! Thank You

Related Questions In AWS

+7 votes
1 answer

Error: Path not found

try using the following command aws s3 cp ...READ MORE

answered Sep 20, 2018 in AWS by Priyaj
• 58,140 points
0 votes
1 answer
+1 vote
1 answer

bash: aws: command not found...

Hi@akhtar, Actually this is not an error. When ...READ MORE

answered Apr 27, 2020 in AWS by MD
• 95,300 points
0 votes
1 answer