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:
- Name: instance-1 (default)
- Labels: - (default)
- Region: us-central1 (default)
- Region: us-central1-a (default)
- Machine type: e2-micro (changed)
- Boot disk: CentOS 7 (changed)
- Confidential VM service: unchecked (default)
- Container: unchecked (default)
- Identity and API access: default service account (default)
- Allow HTTP traffic: checked (changed)
- 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
clean
https://console.cloud.google.com/ > Compute Engine > VM Instances > instance-1 > DELETE
Comments
Post a Comment