
We can test our app by entering the public DNS is a browser and we should see the “Hello World” message. Using your arrow keys scroll down to “location / ).listen(3000, "127.0.0.1") We need to edit the default nginx configuration to forward any incoming request to your Node.js server. Enter following command to install nginx. I choose nginx because it is open source and fairly mature and used by many famous companies. It is best practice to have your Node.js running behind a proxy server such as nginx for extra security and usability. Sudo npm install express ejs express-resource connect futures emailjs Each package has different functionality, if you are not familiar with them just Google them for more info. Now you can install any Node package that you need for your project. It is time to install node package manager NPM from github. Note the make command will take long time to finish. This will help us to manage services more easier. Now we have to install three essential tools for Node.js Enter following commands using Putty Shell.

Part three: Installing Node.js on your EC2 instanceĪfter connecting to your EC2 server for the first time, it is best practice to update your Ubuntu system before use. Enter ubuntu and press enter.Ĭongratulation, you have now connected to your EC2 instance and ready to configure your server or install new software. For a Ubuntu Instance the default username is ubuntu. When the connection establishes the putty will ask to Log in as a user.
