Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I am following Amazon AWS guide to install SSL certificates. I am running Apache on the AWS EC2 using an Amazon Linux AMI 2018.03. The first step guides to run:

sudo systemctl is-enabled httpd

I get "bash: systemctl: command not found". I think I am running Amazon Linux, not an Amazon Linux 2.

1 Answer

0 votes
by (36.8k points)

First, check the Amazon Linux version you have running on using the command cat /etc/os-release

If the Amazon Linux Version 2, then it does support the system and comes installed by default.

If your Amazon Linux version is 1, then it will not support cause Amazon Linux is ultimately based on an old version of CentOS/RHEL.

if your version is 1 (amazon Linux), you need to switch to another Linux distribution that will support the systemd. You can't yum install systemd like a package

image

Come and join Linux training to gain great knowledge. 

Do check out the video below

Related questions

0 votes
1 answer
asked Jan 5, 2021 in Linux by blackindya (18.4k points)
0 votes
1 answer

Browse Categories

...