![]() ![]() It is downloaded, uncompressed and copied to installation directory.īinary package is available for 32-bit and 64-bit Linux versions. The binary package contains pre-compiled collection of programs and files. Using –version switch, verify version of node and npm programs: node -version Verify file system path of node and npm (Node Package Manager) programs with which command: which node Nodejs is installed in /usr/local directory. Quit devtoolset-3 environment by pressing Ctrl+D or entering exit command. ![]() Usually the selected number is equal to the number of CPU cores available in the server. NOTE: the -j switch of make build tool specifies the number of jobs to run simultaneously so as to speed up build process. Use devtoolset-3 Software Collection: scl enable devtoolset-3 bashĬonfigure Node.js source, build and install it. Next, install devtoolset-3 Software Collection: rpm -ivh yum -y install devtoolset-3ĭownload Node.js source package, uncompress it and change current directory to source directory: wget devtoolset-3 depends on another Software Collection rh-java-common and we install it as well.Īt first, install rh-java-common Software Collection: rpm -ivh yum -y install rh-java-common-runtime ![]() So let us use devtoolset-3 Software Collection which provides GCC version 4.9.2 at this time. To compile newer versions of Node.js, GCC 4.8 or higher is required. In this article, we will show you four different methods to install Node.js on your CentOS 6 Linux server.Ĭommands described here require root user access to the CentOS 6 server.įollowing are the different installation methods that we use: Its event-driven and non-blocking I/O model makes it lightweight, efficient and good for serving high volume of requests. It is built on Google Chrome’s V8 JavaScript engine and applications are written in JavaScript. Node.js is a popular open source platform for easily building fast scalable server side network applications.
0 Comments
Leave a Reply. |