Install Software on VM
SSH into a VM and install packages such as Nginx, Apache, or Docker.
Login to your google cloud console
Go to Compute Engine
Then, click on create instance
Name your instance, select region and zone and make sure to Allow HTTP and HTTPS traffic
Now, SSH into it and install apache and commands for that are listed below
sudo su
apt update
apt -y install apache2
apache is installed
Close this SSH, and copy your External IP and paste it into the browser
You will be able to see apache2 page that means your apache is successfully installed
Now, you can close this page
Similarly, you can install Nginx, Docker and many more packages.
You’ve successfully installed software on your VM using SSH—nice work! Next up, we’ll take it a step further by hosting a simple website on your VM. Get ready to bring your cloud project to life in the upcoming post!