Google Compute Engine - Create Apache Server (Browser)

In this post, I am going to create an apache web server on Google Compute Engine from a browser.

See https://web-quickstart.blogspot.com/2021/05/blog-post.html for Terraform equivalent.


create & ssh

https://console.cloud.google.com/ > Compute Engine > VM Instances

If you have not enabled the feature yet, it will ask you to ENABLE it.


Click on CREATE INSTANCE

I have configured as follows:

  1. Name: instance-1 (default)
  2. Labels: - (default)
  3. Region: us-central1 (default)
  4. Region: us-central1-a (default)
  5. Machine type: e2-micro (changed)
  6. Boot disk: CentOS 7 (changed)
  7. Confidential VM service: unchecked (default)
  8. Container: unchecked (default)
  9. Identity and API access: default service account (default)
  10. Allow HTTP traffic: checked (changed)
  11. Allow HTTPS traffic: checked (changed)

> Create > (after a few seconds) > instance-1 > SSH


A new window opens for ssh session


setup apache

sudo yum install httpd

sudo systemctl start httpd

sudo systemctl status httpd

curl ifconfig.me

> 34.68.195.86

http://34.68.195.86/


clean

https://console.cloud.google.com/ > Compute Engine > VM Instances > instance-1 > DELETE


Comments

Popular posts from this blog

Selenide: Quick Start

Minikube Installation for M1 Mac

Three.js Quick Start - Run Spinning-Cube Example