I tried to install sudo amazon-linux-extras install nginx1 but it is not working. I'm using MobaXterm to deploy node.js app to AWS EC2.
When I try the command sudo amazon-linux-extras install nginx, it ends up with sudo: amazon-linux-extras: command not found. I also tried the command sudo app update and sudo app install nginx1 but it does not work. Same thing also applies to sudo apt update. Can someone help me fix this issue?
Check the Amazon image version of your EC2 instance.
Command: cat /etc/image-id
If it is Amazon Linux 2023, it does not have extras.
However, most of the packages are already included in the distro.
You can run sudo yum install nginx
which will install version 1.22
For Amazon Linux 2023 VM, follow the below steps
sudo yum update
sudo yum install stress
Generate CPU stress: stress --cpu <number-of-threads>
Generate memory stress: stress --vm <number-of-threads> --vm-bytes <memory-size>
Generate I/O stress: stress --io <number-of-threads>
Generate disk stress: stress --hdd <number-of-threads>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With