Paste the below code in User Data while creating the Linux Server
It will install apache server and an index.html will be created.
Put the server ip address in browser, you will find the server is up and running and the index.html file will be accessable.
!/bin/bash
sudo su
yum update -y
yum install -y httpd.x86_64
systemctl start httpd.service
systemctl enable httpd.service
echo “Hello World from $(hostname -f)” > /var/www/html/index.html
Optionaly: You can use this Code to create index.html
Optionaly: You can use this Code to create index.html
——————————————————-
S3 Demo By PITC
Pushpjeet Cholkar is a seasoned professional with a strong background in computer science. Born in Khandwa, Madhya Pradesh, India, he pursued his undergraduate degree in Computer Science (B.E.) and is currently working towards a Master's degree in Computer Science (M.E.). With three Oracle Certified Professional (OCP) certifications under his belt and the prestigious title of Senior National Arbiter (India Level), Pushpjeet has established himself as a respected expert in the field. He has a wealth of experience as a trainer, having conducted sessions worldwide, including the USA, Sri Lanka, Muscat, and Africa, specializing in consulting and database administration (DBA). His previous roles at Oracle Bangalore, Deloitte Hyderabad, and RBS Hyderabad have further honed his skills and broadened his industry knowledge. Beyond his professional pursuits, Pushpjeet is passionate about drawing and currency collection, showcasing his diverse interests and creative spirit.