how to install Nodejs in solaris server
Hi Techrunnr subscribers today we shows you how to install Nodejs in solaris. Installation of Nodejs pretty quite simple . Before the installation make sure that your user has sufficient privileges to execute the following commands,
Think of it this way. Imagine a fast food chain where people come in, go to a counter, place their order, wait at the counter till they receive the order (meaning no one else can use that counter) and leave. Now imagine a million people coming in at a time. You’d need a lot of counters. These counters are like instances in PHP. PHP creates a new instance for each request. This is server load intensive and not very scalable.
Now imagine a fast food chain with only one counter. However, when a person places an order, they are made to wait on the side and the next person orders. When the first person’s order is ready, they are given their food without making others wait idly. This is Node.js. It uses a single threaded event loop to handle requests. As a result, it is highly scalable and is not as server load intensive as PHP.
Installing nodejs in solaris is quiet easy, only few steps
Step 1: Login to the server
step 2: Add the package repository to the system
pkgadd -d http://get.opencsw.org/now
Step 3: Install the nodejs using pkgutil
/opt/csw/bin/pkgutil -y -i nodejs
Step 4: Verify your installation using the following commands,
/usr/sbin/pkgchk -L CSWnodejs # list files
Hope this documents help you!!!
© 2018, Techrunnr. All rights reserved.