Google Compute Engine(GCE)

Google Compute Engine(GCE)

ยท

2 min read

This part of lab we are going to GCE instance and play with it accordingly.

Step 1:- On top left corner, Expand services, select compute Engine and click on VM instances.

image.png

Step 2:- Click on create instance.

image.png

Step 3:- Name your instance, choose your **region **and **zone **according to your wish plus choose machine type for now I chose smallest type for this lab.

image.png

Step 4:- Change the Boot disk to Red Hat Enterprise Linux and select Pay as you go(PAYG) option, finally click select.

chrome_bUe0VicDjR.gif

Step 5:- Under firewall choose to Allow HTTP traffic rest every option will be default and finally click create.

image.png

Step 6:- You should see your instance after that click on SSH to log into your instance.

image.png

Your SSH browser should open.

image.png

Step 7:- Let's install Apache server on our instance.

Type out the following command to install Apache.

sudo yum install httpd

Type **y **if you get like below image

image.png

or else you can type below command.

sudo yum install httpd -y

**sudo **- it is a superuser or substitute user do which you are giving a specific system command at root.

**yum **- with this command you can install, update any package.

**httpd **- it is used for basic communication or getting request for your Apache web server or Application.

-y - it is basically like saying yes to proceed with installing some package in short.

Next write the following command to start your Apache server.

sudo service httpd start

Step 8:- Click on your instance external IP.

image.png

You should see your Apache web page in red hat linux.

Oa4BH5WRGB.png

That's it, for now, we will continue further more in next blog.

Hope you liked it. Will see you on the next topic ๐Ÿ˜ƒ

Next Topic

bvakash.hashnode.dev/google-compute-engine-..

ย