Making Node.js service always alive on Ubuntu Server

Forever Module is good, but you don’t need another software to control background processes on your server! One of the challenges in production is how to run Node.js services in background automatically restart them if they are crashing collect output/error logs for analyzing them later or watching them in a real time. All of them are similar to every long running application on server side, so the Linux community have that kind of tools natively integrated into almost every linux d ...

View More
  Dibaca 327 kali

Tutorial Install Latest Node.js and NPM on Ubuntu

Step 1 – Add Node.js PPA Node.js package is available in LTS release and the current release. It’s your choice to select which version you want to install on the system as per your requirements. Let’s add the PPA to your system to install Nodejs on Ubuntu. Use Current Release: At te last update of this tutorial, Node.js 10.0.0 is the current Node.js release available. sudo apt-get install curl python-software-properties curl -sL | sudo ...

View More
  Dibaca 347 kali

How To Use SSL/TLS With Node.Js

  HTTPS Everywhere The HTTP/2 specification was published as RFC 7540 in May 2015, which means at this point it’s a part of the standard. This was a major milestone. Now we can all upgrade our servers to use HTTP/2. One of the most important aspects is the backwards compatibility with HTTP 1.1 and the negotiation mechanism to choose a different protocol. Although the standard doesn’t specify mandatory encryption, currently no browser supports HTTP/2 unencrypted. This gives HTTPS ...

View More
  Dibaca 384 kali