-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,260 points
2,979 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,460 points
Awesome!!!! Thank You

Related Questions In AWS

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,460 points
13,895 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP