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?
2
Answers
That is because you must have picked amazon linux 2023 ami while launching the server the command "amazon-linux-extras" will work only in amazon-linux-2.
You can downgrade the version of your Amazon Linux to something lower such as Amazon Linux 2.