amazon-linux

Command not found: systemctl on Amazon Linux 2018.03

China☆狼群 提交于 2019-12-03 11:36:21
问题 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. 回答1: 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

Can't install gcloud on Amazon Linux : invalid syntax

江枫思渺然 提交于 2019-11-28 12:20:55
问题 I'm trying to install gcloud on my EC2 server running Amazon Linux 4.14.47-56.37 64bits, in interactive mode running the following command : curl https://sdk.cloud.google.com | bash The files download correctly, but the install then fails with the following Traceback : File "/home/ec2-user/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module> import bootstrapping File "/home/ec2-user/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 32, in <module> import setup #