MultiCloud Classroom notes 19/Sep/2024

Managing Windows Servers

Windows Servers on AWS

  • While creating you are supposed to use a key pair
  • note: donot use the id_rsa generated locally
  • Windows servers can be connected by using remote desktop connections (rdp)
  • rdp required 3389 port
  • While connecting to the machine we need to generate password using private key
  • mstsc -v <publicip>

Windows Servers on Azure

  • In Azure we have option to set password and username while creation and Azure doesnot support ssh keys gor windows

Activity 8: Create an webserver to host a website on AWS in ubuntu Linux

  • Our Website template: Refer Here
  • Webservers:
    • apache
    • nginx
  • We will be using nginx
  • Installing nginx on ubuntu
sudo apt update
sudo apt install nginx -y
  • Now we need to download our template and make it run on nginx
sudo apt install unzip -y
cd /tmp
wget https://www.free-css.com/assets/files/free-css-templates/download/page294/troweld.zip
unzip troweld.zip
  • Now move troweld-html folder to the folder where nginx will host /var/www/html
sudo mv troweld-html /var/www/html/troweld

Preview

Activity 8: Create an webserver to host a website on Azure in ubuntu Linux

  • Our Website template: Refer Here
  • Webservers:
    • apache
    • nginx
  • We will be using nginx
  • Installing nginx on ubuntu
sudo apt update
sudo apt install nginx -y
  • Now we need to download our template and make it run on nginx
sudo apt install unzip -y
cd /tmp
wget https://www.free-css.com/assets/files/free-css-templates/download/page294/troweld.zip
unzip troweld.zip
  • Now move troweld-html folder to the folder where nginx will host /var/www/html
sudo mv troweld-html /var/www/html/troweld

Activity 9: We are asked to do the same for one more ec2 and one more azure vm

  • case: We need to install the necessary softwares once after creating the ec2 instance
  • All the steps which we have executed are linux commands executed on bash
  • IF we summarize
#!/bin/bash
sudo apt update
sudo apt install nginx unzip -y
cd /tmp && wget https://www.free-css.com/assets/files/free-css-templates/download/page294/troweld.zip && unzip troweld.zip
sudo mv /tmp/troweld-html /var/www/html/troweld
  • All cloud providers give us userdata or custom data where we can run any script post creation.
  • In the userdata there is no need to specify sudo as it runs as a root user
  • For screen shots refer classroom videos

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube