Posts

Showing posts from June, 2020

Content

                                                  Content How to create an AWS free Account? Lab 1: To launch amazon Linux EC2 instance Lab 2: To Connect to the instance from Linux client Operating System Lab 3:To Launch amazon windows instance Lab 4: Installing apache in EC2 instance Lab 5: Installing Nginx in EC2 instance Lab 6: Changing Host Name Lab 7: Creating a user and making as a sudoer Lab 8:Assigning an Elastic ip Lab 9:Creating ebs,attach and detach the volumn to the instance Lab 10:Creating an S3 Bucket and creating cross replication in another region Lab 11:Load Balancer Lab 12:Two instances with Application Load Balancer Lab 13:Launching two instances with load Balancer Lab:14 Creating Own VPC  Lab 15: Two instances which classic load Balance with own VPC Lab 16:Two instances with Application load Balancer with own VPC Lab 17: Relational Data B...

Lab 5: Installing Nginx in EC2 instance

Image
                                        Lab 5: Installing Nginx in EC2 instance Connect to server  Installing nginx as same as apache Nginx also run on port no 80 Installing Nginx #yum install ngnix -y #systmctl start nginx After installing start the service #systemctl start nginx Then run the command whether  nginx is started or not #ps-ef|grep nginx Now test the nginx page #Curl http://local host Page is there in server Now run the page in browser by giving ip addressess of the ec2 instance This is the nginx page. Execrises; Launch an  EC2  instance and install  nodejs,reactjs app .

Lab 4: Installing apache in EC2 instance

Image
                                                Lab 4: Installing apache in EC2 instance Refer above how to launch an instance an and how to connect to the instance in git bash. Pem file copied to server Now connect to the ec2 user #ssh -i <pemfile>ec2-user@ipaddress Now change the pem file permissions #chmod 400<pemfile> Now check the weather pem file is there or not in the server #ls Now switch to root user #sudosu Now install the apache in the server #yum install httpd -y After installing start the apache #systemctl start httpd After installing check wheather apache installed or not #ps-ef|grep httpd Apache installed now start the apache And check wheather apache start or not #ps-ef|gerp httpd Now go the instance add inbound rule port 80 in security group and save it. Apache will run on port 80 so if we want to access the apache page .We need add http po...

Lab 3:To Launch amazon windows instance

Image
                                              Lab 3:To Launch amazon windows instance Go to EC2 dashboard and click on launch instance Select your region where you need to launch the instance Select Microsoft windows server 2000 ami Next choose instance instance type Select default instance type Go to t2.micro free tier Next configure instance details Leave all as default only And click on add storage Go with default size only And click on next Next Tags Leave as default one Next click on Configure Security Group Next create a security group Give security name and description And go with default inbound Rules Then Click on Review and Launch . click on launch button Next create new key pair By giving key pair name And download the key pair and launch the instance Instance launch is created go to the EC2 Dashboard Now connect window instance from windows client operating...

Lab 2: To Connect to the instance from Linux client Operating System

Image
                        Lab 2: To Connect to the instance from Linux client Operating System To connect to the instance from linux client we have two types clients. Git bash and putty Refer below link to download gitbash in windows https://gir-scm.com/download/win Download putty from putty.org https://www.chairk.greenend.org.uk/~sgtatham/putty/latest.html From the above link download putty.exe and puttygen.exe To connect to the ec2 instance in gitbashwe need a pem file. Copy the pem file from downloads to ec2user ( Note: We already downloaded pemfile while creating the instance .Use that pemfile for connecting to the ec2user) Go to gitbash copy the pem file  #scp -i <pemfile><pemfile>ec2-user@<ipaddress>:/home/ec2-user (Give downloaded pemfile and ipaddress of the instance you can find the ip address in the instance B) Connecting through putty click on puttygen.exe click on Run Click on the load but...

Lab 1: To launch amazon Linux EC2 instance

Image
                                              Lab 1: To launch amazon Linux EC2 instance What is EC2?    It is web service that provides you secure and resizable  compute capacity in the cloud it's just like a virtual machine. Why we Use ?    To Launch servers one or more as you need and configure security,capacity,networking and storage. What are EC2 kaywords?   AMI ------------> It provide  the information which type of instance you want to launch like Ubuntu,amazon linux,linux,redhat,windows etc... Storage instance size -------------> you can choose the type of instance size like t2.micro,m4,large ....so on.. Security Group ------------------->It provide the security for an instance that filter the traffic coming and out. Key pair- ------------------------>To login to an instance we must create a key pair. Lab: To  Laun...