![traccar on cpanel server traccar on cpanel server](https://malware.expert/wp-content/uploads/2016/08/cpanel_multiphp_ini_editor-1024x512.png)
This file lists the packages that the application depends on. For this tutorial, we will create our application in the ~/tcp-nodejs-app directory:Ĭreate a new file named package.json for your project. To begin, create a directory on your server in which you would like to place your Node.js application. This is a sample application which will help you understand the Net library in Node.js which enables us to create raw TCP server and client applications. We will write a Node.js application using TCP Sockets. Step 1 - Creating a Node.js TCP Application
TRACCAR ON CPANEL SERVER HOW TO
Node.js installed using the official PPA, as explained in How To Install Node.js on Ubuntu 16.04.Nginx must be compiled with the -with-stream option, which is the default on a fresh installation of Nginx through the apt package manager on Ubuntu 16.04. Nginx installed on your server, as shown in How To Install Nginx on Ubuntu 16.04.One Ubuntu 16.04 server set up by following the Ubuntu 16.04 initial server setup guide, including a sudo non-root user and a firewall.To complete this tutorial, you will need: Then you’ll configure Nginx as a reverse proxy for the TCP application and test the client-server connection from your local machine. You’ll run your server as a background process using a powerful Node.js process manager called PM2. In this tutorial, you’ll build a basic Node.js TCP server, along with a client to test the server. A TCP server can accept a TCP connection request, and once the connection is established both sides can exchange data streams. TCP (Transmission Control Protocol) is a networking protocol that provides reliable, ordered and error-checked delivery of a stream of data between applications. Node.js is used for building server-side and networking applications. Node.js is a popular open-source JavaScript runtime environment built on Chrome’s V8 Javascript engine. The author selected OSMI to receive a donation as part of the Write for DOnations program.