How to Install Node.JS Server on Azure/AWS/GCP
To setup and install NodeJS on any of the cloud platforms, the recommended way is to setup a VM using the image available in the marketplaces below. Node.js is an open source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on Linux.
Install Node.JS Server on AWS
Â
Deploy Node.js on Ubuntu Server 20.04
Â
Install Nodejs Server on Azure
Â
Deploy Nodejs on Ubuntu Server 20.04
Â
Install Node.js Server on GCP
Â
Deploy Node.js on Ubuntu Server 20.04
Â
Getting Started
Â
Once your Node.JS server has been deployed, the following links explain how to connect to a Linux VM:
Â
- How to connect to a Linux VM on Azure
- How to connect to a Linux VM on AWS
- How to connect to a Linux VM on GCP
Â
Once connected and logged in, you’re ready to start configuring Nodejs
Using Node.js
Â
To test that Node.js is running, run the following commands and it should tell you what version is running.
node -v
The version of Node.js will be the latest from the OS official repositories that can be used to provide a consistent experience across multiple systems.
Â
If however you would like the most recent version from PPA (personal package archive) maintained by NodeSource, refer to the following instructions for upgrading to the latest version.
Â
For Ubuntu Server:
https://github.com/nodesource/distributions/blob/master/README.md#debinstall
Â
For CentOS Server:
https://github.com/nodesource/distributions/blob/master/README.md#rpminstall
Â
Nodejs Documentation
Â
Documentation on using Node.JS can be found on their website:
Node.js Firewall Ports
Â
By default the following ports have been enabled:
Â
- TCP80
- TCP443
- TCP3000
Â
If you are using any of the cloud security groups and need to change / add ports refer to the following guides:
Â
To setup AWS firewall rules refer to – AWS Security Groups
To setup Azure firewall rules refer to – Azure Network Security Groups
To setup Google GCP firewall rules refer to – Creating GCP Firewalls
Disclaimer: Node.js® is a registered trademark of Joyent, Inc. and is licensed under MIT License. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
Related Posts:
- How to Install Node.js Microservices to AWS using Docker
- How to Install Ansible on Ubuntu 20.04 Server (Control Node)
- How to Install Node.js on Ubuntu 20.04 Server (Tutorial)
- How to Install Node.js on CentOS 8 Server Tutorial (Step by Step)
- How to Install Node.js on Debian 11 Server (Setup/ Configure)
- How to Install Node.js on Ubuntu 22.04