找不到命令:Amazon Linux 2018.03上的systemctl [英] Command not found: systemctl on Amazon Linux 2018.03
本文介绍了找不到命令:Amazon Linux 2018.03上的systemctl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在关注
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:
sudo systemctl is-enabled httpd
I get "bash: systemctl: command not found". I suspect maybe I am running Amazon Linux, not Amazon Linux 2.
解决方案
- First check what Amazon linux version you have runnng on using the
command
cat /etc/os-release
- If it is Amazon Linux Version 2, then it does support systemd and comes installed by default.
- 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
这篇关于找不到命令:Amazon Linux 2018.03上的systemctl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文