-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,230 points
2,614 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,440 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,090 points
860 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,440 points
13,174 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