My First Node.js Application

This article is in continuation to the Nodejs Series. To refer how to install Nodejs on Ubuntu follow the link Setting up Nodejs Environment on Ubuntu Hello world application that returns “Hello World” to any HTTP requests. Move to your projects directory user@LT-201: mkdir /projects/trials/nodejstrials create a helloworld.js using the vi editor user@LT-201:vi helloworld.js Write…

AWS Ubuntu SSH

To connect to AWS ensure to have the pem file at your disposal. Check the pem file ls *.pem ls -la emailverifier-DC.pem chmod -w emailverifier-DC.pem ls -la emailverifier-DC.pem Appropriate permissions on pem file ls -la ls -la emailverifier-DC.pem-~ chmod go-rw emailverifier-DC.pem ls -la emailverifier-DC.pem chmod -w emailverifier-DC.pem pwd Transfer a file from local system to…

Ubuntu Ports, Process Commands

sudo netstat -peanut : Lists all the processes with ports sudo netstat -peant | grep “:9300 ” user@user-HP-Compaq-8100-Elite-SFF-PC:/opt/logstash/bin$ sudo netstat -lanpt | grep LIST | grep java tcp        0      0 127.0.0.1:63342         0.0.0.0:*               LISTEN      6493/java tcp        0      0 0.0.0.0:39953           0.0.0.0:*               LISTEN      6493/java tcp        0      0 127.0.0.1:6942          0.0.0.0:*               LISTEN      6493/java tcp        0      0 127.0.0.1:35040         0.0.0.0:*               LISTEN      6493/java…

How to set up Nodejs for development and production environments on Ubuntu 16.04

Node.js is a Javascript platform for server-side programming that allows users to build network applications quickly. By leveraging Javascript on both the front-end and the back-end, development can be more consistent and be designed within the same system. NPM: makes it easy to share and reuse Javascript code. The bits of reusable code are called…