-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,170 points
1,258 views

1 answer to this question.

0 votes

Hi@akhtar,

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,180 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,120 points
241 views
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,180 points
4,431 views
0 votes
1 answer