Installing Nginx Proxy Server on Google Cloud

Proxy Server is an intermediate between Client and another server(On which website is running) or Cloud instance. Here we will see how to install an Nginx proxy server on Google Cloud. In order to install a proxy server on Google Cloud, you need a VM instance. If you don’t have VM instance then please click on below to create a VM instance on Google cloud.
Creating a VM instance on Google Cloud

If you want to know in detail what is proxy server then please click on the below the link.
Proxy Server

Steps for installing a Proxy Server

Assume you have Created a VM instance on Google Cloud.

1)Open Your Google Cloud console.

2)First, Navigate to your VM instance. For navigation, the path is shown below.
Click on Navigation menu -> PRODUCTS -> COMPUTEĀ  -> Compute Engine -> VM instances.

3)Click on the SSH of the respective VM instance which is shown below.

4)Please execute below command to enter in substitute user mode which is shown below.

sudo su

5)Please execute below command to navigate in the root directory which is shown below.

cd ../..

6)Execute the following command to update the existing files which is shown below.

sudo apt-get update && sudo apt-get upgrade

7)Execute the following command to install the Nginx proxy server which is shown below.

sudo apt-get install nginx

8)Execute the following command to check the Nginx proxy server version which is shown below.

nginx -v

9)Execute the following command to check the Nginx proxy server status which is shown below. Default Nginx proxy server is on.

sudo service nginx status

10)Execute the following command to stop the Nginx proxy server which is shown below.

sudo service nginx stop

11)Execute the following command to start the Nginx proxy server which is shown below.

sudo service nginx start


Congrats you have successfully installed Nginx Proxy server on Google Cloud.

How to host a website on Google Cloud

How to host a website on Google Cloud

You may also like...

Leave a Reply