Create your first web-application in ubuntu EC2 machine | aws

Опубликовано: 27 Июль 2026
на канале: ComputeWithAman
57
2

Hi all,

Update command --------------- sudo apt update
Install command for Nginx ---- sudo apt install nginx -y

check nginx status ---------- sudo systemctl status nginx
Stop nginx service ---------- sudo systemctl stop nginx
Start nginx service --------- sudo systemctl start nginx

nginx index-file path -------- cd /var/www/html

remove default index file ---- sudo rm .html file-present-at-path

create new index file -------- sudo vi index.html

HTML website link ------- https://www.w3schools.com/html/

-------------------------------------------------------------

Simple HTML file is given at below path ---

https://www.w3schools.com/html/

----------------------------------------------------------------

To Download image in ubuntu machine ......

1) Open any image in browser
2) Right click on image and copy-image-link
3) Go inside cd /var/www/html folder
4) type command ----- sudo curl image-link --output image1.png
5) check new image file in /var/www/html folder by ls command
6) Add image-name in index.html file.

Thank you