Command not found: systemctl on Amazon Linux 2018.03

前端 未结 2 2015
攒了一身酷
攒了一身酷 2021-02-02 10:52

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

2条回答
  •  天涯浪人
    2021-02-02 11:11

    1. First check what Amazon linux version you have runnng on using the command cat /etc/os-release
      1. If it is Amazon Linux Version 2, then it does support systemd and comes installed by default.
      2. If it is Amazon linux version 1, then it doesn't support cause Amazon Linux is ultimately based on an old version of CentOS/RHEL.

    if it is version 1 (amazon linux), you just need to switch to any other linux distribution that supports systemd. You can't yum install systemd like a package

提交回复
热议问题