How to Install & Configure an NGINX Web Server AWS Linux AMI

Опубликовано: 30 Январь 2025
на канале: Cloud Engineering for Beginners
58
2

Here’s how you can install and set up an NGINX web server on an AWS EC2 instance running Amazon Linux:

Steps to Install NGINX on Amazon Linux
Connect to Your EC2 Instance

Use SSH to connect to your instance: (I did not use SSH in the video)


ssh -i your-key.pem ec2-user@your-instance-ip
Update the System Packages

Run the following command to update the system:

sudo yum update -y

Install NGINX

Use the following command to install NGINX:
sudo yum install -y nginx
sudo amazon-linux-extras enable nginx

Start and Enable NGINX

Start the NGINX service

sudo systemctl start nginx

Enable NGINX to start on boot:

sudo systemctl enable nginx


На этой странице сайта вы можете посмотреть видео онлайн How to Install & Configure an NGINX Web Server AWS Linux AMI длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Cloud Engineering for Beginners 30 Январь 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 58 раз и оно понравилось 2 зрителям. Приятного просмотра!