
htaccess file, then exit the text editor.You’ll need root access to follow the steps below. Replace XXXXX with the port on which your Node.js application listens in both RewriteRule lines.htaccess file in the /home/username/public_html directory, where username represents your account username: In a text editor, add the following lines to the.In order to integrate a node.js application with the web server, follow the below steps : To immediately stop all currently running Node.js applications, type the following command: pkill node INTEGRATING A NODE.JS APPLICATION WITH THE WEB SERVER For example: nohup node my_software.js & STOPPING A NODE.JS APPLICATION Package.json file is required in order to make this method work.įor simple applications, you can run the node executable directly and specify the application filename. Use the npm program to start the application by typing the following command : nohup npm start -production & Npm -version STARTING A NODE.JS APPLICATION nodejs/lib/node_modules/npm/bin/npm-cli.js npmĪfter this, verify the installation process - node -version To install the node and npm binaries, type the following commands :.To rename the extracted folder to the more convenient nodejs name, type the following command:.

To extract the Node.js files, type the following command:.


