Virtual machines
Dividing a big server into multiple instance where each of them works exactly like a regular server. Each of this divided part is a Virtual machine.
What is a Compute engine?
A google Compute engine is a customizable VM, Google provide both pre-defined and custom-type compute engine.
Pre-defined machine-types are general(best for web, and small applications), Compute Optimized and Memory Optimized.
What is Ngnix?
Its a Http and reverse proxy server.
Creating a VM using Google Cloud Console
- Open cloud Console.
- Navigation menu > Compute Engine > VM Instances.
- Name your VM, and also select Region, Zone, Series, Machine type, Boot-Disk and Firewall
- Click on Create.
Creating a Vm using Command Line
- Open Cloud terminal
- Use gcloud command
gcloud compute instances create <vm_name> --machine-type <machine-type> --zone <your_Zone>
- Eg
gcloud compute instances create gcelab2 --machine-type n1-standard-2 --zone us-central1-c
- to Ssh into your instance
gcloud compute ssh gcelab2 --zone us-central1-c
Top comments (0)